]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php
Removed plugin Google-Analytics as this is free/libre and decentralized
[quix0rs-gnu-social.git] / plugins / SiteNoticeInSidebar / SiteNoticeInSidebarPlugin.php
index 4e6aade2a519b33d54b5efdefc1c7addbf1f3632..3131847349f80b9eb1f434001ab47b4bfa73c0d1 100644 (file)
@@ -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;
-        }
-    }
 }