projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25a2d5c
)
Prevents a Runtime Notice in include/banana/hooks.inc.php.
author
Stéphane Jacob
<sj@m4x.org>
Mon, 27 Jul 2009 19:36:25 +0000
(21:36 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Mon, 27 Jul 2009 19:36:25 +0000
(21:36 +0200)
include/banana/hooks.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/include/banana/hooks.inc.php
b/include/banana/hooks.inc.php
index
f5f608a
..
ebd913c
100644
(file)
--- a/
include/banana/hooks.inc.php
+++ b/
include/banana/hooks.inc.php
@@
-324,7
+324,8
@@
class BananaHandler
function run_banana(&$page, $class, array $args)
{
- $banana = new $class(S::user(), $args);
+ $user = S::user();
+ $banana = new $class($user, $args);
$page->assign('banana', $banana->run());
$page->addCssInline($banana->css());
$page->addCssLink('banana.css');