mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Events
drop usage of holidayIds (as far as possible) the obvious change is, that all events are now refenreced by a positive eventId. (?event=375 will probably become ?event=5) Comments fixed malformed db-table. It can now hold negative typeIds. applying this commit will drop any comments related to events without holiday added gain of SiteReputation for comment-replies resyncing dependencies of 'game_event' is required
This commit is contained in:
@@ -330,11 +330,7 @@ class CommunityContent
|
||||
if (!$ids)
|
||||
continue;
|
||||
|
||||
$cnd = [['id', $ids]];
|
||||
if ($t == TYPE_WORLDEVENT) // FKIN HOLIDAYS
|
||||
array_push($cnd, ['holidayId', $ids], 'OR');
|
||||
|
||||
$tClass = new Util::$typeClasses[$t]($cnd);
|
||||
$tClass = new Util::$typeClasses[$t](array(['id', $ids]));
|
||||
foreach ($pages as &$p)
|
||||
if ($p['type'] == $t)
|
||||
if ($tClass->getEntry($p['typeId']))
|
||||
|
||||
Reference in New Issue
Block a user