]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Misc small fixes, plus a new hook in tag.php
authorJulien C <chaumond@gmail.com>
Sun, 7 Feb 2010 17:29:42 +0000 (18:29 +0100)
committerCraig Andrews <candrews@integralblue.com>
Wed, 24 Mar 2010 03:02:17 +0000 (23:02 -0400)
EVENTS.txt
actions/tag.php
plugins/RSSCloud/RSSCloudPlugin.php

index 2da6f3da61b1e89438e269424c8ad2fdc2f3f307..cf9c6123f34894f9bdaa0f737317ab87f78ebbdd 100644 (file)
@@ -141,7 +141,7 @@ StartLogout: Before logging out
 EndLogout: After logging out
 - $action: the logout action
 
-ArgsInitialized: After the argument array has been initialized
+ArgsInitialize: After the argument array has been initialized
 - $args: associative array of arguments, can be modified
 
 StartAddressData: Allows the site owner to provide additional information about themselves for contact (e.g., tagline, email, location)
index ee9617b662cd1d4185a00c2c6f142e511ff94042..72668a0c919f4a625bf096b7ba680eff789952a4 100644 (file)
@@ -102,12 +102,17 @@ class TagAction extends Action
 
     function showContent()
     {
-        $nl = new NoticeList($this->notice, $this);
+        if(Event::handle('StartTagShowContent', array($this))) {
+            
+            $nl = new NoticeList($this->notice, $this);
 
-        $cnt = $nl->show();
+            $cnt = $nl->show();
 
-        $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
-                          $this->page, 'tag', array('tag' => $this->tag));
+            $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
+                              $this->page, 'tag', array('tag' => $this->tag));
+
+            Event::handle('EndTagShowContent', array($this))
+        }
     }
 
     function isReadOnly($args)
index 9f444c8bba0ca5482363ca612b242ec6eabbe43a..001106aceceb4606b2a4e3a741bb90351720b704 100644 (file)
@@ -105,7 +105,7 @@ class RSSCloudPlugin extends Plugin
      * @return boolean hook return
      */
 
-    function onRouterInitialized(&$m)
+    function onRouterInitialized($m)
     {
         $m->connect('/main/rsscloud/request_notify',
                     array('action' => 'RSSCloudRequestNotify'));