/** * clean history after delete * @param $self * @param $user * @param $reason * @param $id * @return bool */ public static function onArticleDeleteComplete(&$self, &$user, $reason, $id) { $title = $self->getTitle(); $app = F::app(); if ($title instanceof Title && $title->getNamespace() == NS_USER_WALL_MESSAGE) { $wh = new WallHistory($app->wg->CityId); $wh->remove($id); } return true; }