]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use array for events
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 20:58:02 +0000 (16:58 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 20:58:02 +0000 (16:58 -0400)
actions/doc.php

index 7387c162075195b19e6f719234a1ffa84e3fa440..6f3a87e489fbbe99c4236918e43ade4371f823ad 100644 (file)
@@ -62,7 +62,7 @@ class DocAction extends Action
         $this->title  = $this->trimmed('title');
         $this->output = null;
 
-        if (Event::handle('StartLoadDoc', &$this->title, &$this->output)) {
+        if (Event::handle('StartLoadDoc', array(&$this->title, &$this->output))) {
 
             $this->filename = INSTALLDIR.'/doc-src/'.$this->title;
             if (!file_exists($this->filename)) {
@@ -73,7 +73,7 @@ class DocAction extends Action
             $c = file_get_contents($this->filename);
             $this->output = common_markup_to_html($c);
 
-            Event::handle('EndLoadDoc', $this->title, &$this->output);
+            Event::handle('EndLoadDoc', array($this->title, &$this->output));
         }
 
         $this->showPage();