diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2013-10-15 16:26:25 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2013-10-15 16:26:25 +0200 |
commit | 5da403f17a007f1b202f1c5ea2dbc80ab19d26e8 (patch) | |
tree | c3e2cc0f1d18ccc9661a1c68bf6296386e62908a /inc | |
parent | a04f2bd5a2eae55dbbdbbcffbe7b500b689138e7 (diff) | |
download | rpg-5da403f17a007f1b202f1c5ea2dbc80ab19d26e8.tar.gz rpg-5da403f17a007f1b202f1c5ea2dbc80ab19d26e8.tar.bz2 |
fix signatures and old by references
Diffstat (limited to 'inc')
-rw-r--r-- | inc/actions.php | 3 | ||||
-rw-r--r-- | inc/html.php | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/inc/actions.php b/inc/actions.php index 06499df9c..5a59d852d 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -164,7 +164,8 @@ function act_dispatch(){ $pluginlist = plugin_list('admin'); if (in_array($page, $pluginlist)) { // attempt to load the plugin - if ($plugin = plugin_load('admin',$page) !== null){ + + if (($plugin = plugin_load('admin',$page)) !== null){ /** @var DokuWiki_Admin_Plugin $plugin */ if($plugin->forAdminOnly() && !$INFO['isadmin']){ // a manager tried to load a plugin that's for admins only diff --git a/inc/html.php b/inc/html.php index 68ca364f1..2d7216a45 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1661,7 +1661,7 @@ function html_admin(){ global $ID; global $INFO; global $conf; - /** @var auth_basic $auth */ + /** @var DokuWiki_Auth_Plugin $auth */ global $auth; // build menu of admin functions from the plugins that handle them @@ -1669,7 +1669,7 @@ function html_admin(){ $menu = array(); foreach ($pluginlist as $p) { /** @var DokuWiki_Admin_Plugin $obj */ - if($obj = plugin_load('admin',$p) === null) continue; + if(($obj = plugin_load('admin',$p)) === null) continue; // check permissions if($obj->forAdminOnly() && !$INFO['isadmin']) continue; |