From: Evan Prodromou Date: Sun, 23 Jan 2011 17:03:28 +0000 (-0500) Subject: remove boilerplate from NewMenuPlugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b72fe00ae3227c3ee849ec8477538685aeb7bc6f;p=quix0rs-gnu-social.git remove boilerplate from NewMenuPlugin --- diff --git a/plugins/NewMenu/NewMenuPlugin.php b/plugins/NewMenu/NewMenuPlugin.php index cdcea5cd92..db334c6609 100644 --- a/plugins/NewMenu/NewMenuPlugin.php +++ b/plugins/NewMenu/NewMenuPlugin.php @@ -53,31 +53,6 @@ class NewMenuPlugin extends Plugin { public $loadCSS = false; - /** - * 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 'HelloAction': - include_once $dir . '/' . strtolower(mb_substr($cls, 0, -6)) . '.php'; - return false; - case 'User_greeting_count': - include_once $dir . '/'.$cls.'.php'; - return false; - default: - return true; - } - } - /** * Modify the default menu *