X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FModLog%2FModLogPlugin.php;h=32c96be0e8c0722b5d7249adc0012beacc7455d6;hb=1864a9de382fedf47cc9d8e414440c624d3aebf1;hp=459df63e8213eeac24b87f6b370d7450ad7c365a;hpb=3ad3535cd8d12787d1af95969b9576620abce4a9;p=quix0rs-gnu-social.git diff --git a/plugins/ModLog/ModLogPlugin.php b/plugins/ModLog/ModLogPlugin.php index 459df63e82..32c96be0e8 100644 --- a/plugins/ModLog/ModLogPlugin.php +++ b/plugins/ModLog/ModLogPlugin.php @@ -71,28 +71,6 @@ class ModLogPlugin extends Plugin return true; } - /** - * Load related modules when needed - * - * @param string $cls Name of the class to be loaded - * - * @return boolean hook value; true means continue processing, false means stop. - */ - - function onAutoload($cls) - { - $dir = dirname(__FILE__); - - switch ($cls) - { - case 'ModLog': - include_once $dir . '/'.$cls.'.php'; - return false; - default: - return true; - } - } - function onEndGrantRole($profile, $role) { $modlog = new ModLog(); @@ -138,7 +116,7 @@ class ModLogPlugin extends Plugin return true; } - function onEndShowSections($action) + function onEndShowSections(Action $action) { if ($action->arg('action') != 'showstream') { return true; @@ -174,7 +152,7 @@ class ModLogPlugin extends Plugin $action->element('td', null, sprintf(($ml->is_grant) ? _('+%s') : _('-%s'), $ml->role)); $action->elementStart('td'); if ($ml->moderator_id) { - $mod = Profile::staticGet('id', $ml->moderator_id); + $mod = Profile::getKV('id', $ml->moderator_id); if (empty($mod)) { $action->text(_('[unknown]')); } else { @@ -205,10 +183,10 @@ class ModLogPlugin extends Plugin } } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'ModLog', - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Evan Prodromou', 'homepage' => 'http://status.net/wiki/Plugin:ModLog', 'description' =>