diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-01-08 14:27:48 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-01-08 14:27:48 +0100 |
commit | 5fc635f7bba37e47054faa2ecc2cc246d7d16f6a (patch) | |
tree | 084c80ab951f80c71cd29cc6498b81eda3551d38 /ratatoeskr/sys/plugin_api.php | |
parent | 2b74984974b8363aa2bf197fb1d3950f7425a878 (diff) | |
download | ratatoeskr-cms-5fc635f7bba37e47054faa2ecc2cc246d7d16f6a.tar.gz ratatoeskr-cms-5fc635f7bba37e47054faa2ecc2cc246d7d16f6a.tar.bz2 ratatoeskr-cms-5fc635f7bba37e47054faa2ecc2cc246d7d16f6a.zip |
Fixed some plugin related bugs.
* Plugin backend pages did not work.
* Plugin author was not transferred to database.
Diffstat (limited to 'ratatoeskr/sys/plugin_api.php')
-rw-r--r-- | ratatoeskr/sys/plugin_api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ratatoeskr/sys/plugin_api.php b/ratatoeskr/sys/plugin_api.php index 797f42d..7a80a5b 100644 --- a/ratatoeskr/sys/plugin_api.php +++ b/ratatoeskr/sys/plugin_api.php @@ -168,13 +168,13 @@ abstract class RatatoeskrPlugin global $pluginpages_handlers; $this->ste->vars["pluginpages"][$this->id] = $label; - sort($this->ste->vars["pluginpages"]); + asort($this->ste->vars["pluginpages"]); $pluginid = $this->id; $pluginpages_handlers["p{$this->id}"] = function(&$data, $url_now, &$url_next) use($pluginid, $fx) { global $ste, $rel_path_to_root; $ste->vars["rel_path_to_pluginpage"] = "$rel_path_to_root/backend/pluginpages/p$pluginid"; - $rv = $fx($data, $url_now, $url_next); + $rv = call_user_func_array($fx, array(&$data, $url_now, &$url_next)); unset($ste->vars["rel_path_to_pluginpage"]); return $rv; }; |