X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FSiteNoticeInSidebar%2FSiteNoticeInSidebarPlugin.php;h=3131847349f80b9eb1f434001ab47b4bfa73c0d1;hb=8c9efff1ace2d5e466691abf038f096eb5dd5f51;hp=4e6aade2a519b33d54b5efdefc1c7addbf1f3632;hpb=d594c83a5a9a9d42fce917b544c28591fcadb1aa;p=quix0rs-gnu-social.git diff --git a/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php b/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php index 4e6aade2a5..3131847349 100644 --- a/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php +++ b/plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php @@ -60,7 +60,7 @@ class SiteNoticeInSidebarPlugin extends Plugin return false; } - function onStartShowSections($action) + function onStartShowSections(Action $action) { $text = common_config('site', 'notice'); if (!empty($text)) { @@ -75,18 +75,4 @@ class SiteNoticeInSidebarPlugin extends Plugin $action->element('style', null, '#site_notice { width: 100% }'); return true; } - - function onAutoload($cls) - { - $dir = dirname(__FILE__); - - switch ($cls) - { - case 'SiteNoticeSection': - include_once $dir . '/'.strtolower($cls).'.php'; - return false; - default: - return true; - } - } }