GitHost.io will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at https://about.gitlab.com/gitlab-hosted/#githost-is-shutting-down-on-june-1st-2019

Commit c9f9b011 authored by Evan Prodromou's avatar Evan Prodromou

use array for events

parent 9aa39c75
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment