diff options
author | Andrew Dolgov <[email protected]> | 2021-02-18 11:54:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-18 11:54:29 +0300 |
commit | 466cba39d86487ce3c81d7aeade96e9f9e4a119d (patch) | |
tree | 2e21056edf73e853319a05aa25b038c078c4cfd1 /backend.php | |
parent | 1adb9bb6b643736706b746629b849df9cdf45e50 (diff) | |
parent | b888bc2091c6737846f54a729ee047e4693fd8e3 (diff) |
Merge branch 'master' of git.fakecake.org:fox/tt-rss
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backend.php b/backend.php index 9ecc22914..e64c6561f 100644 --- a/backend.php +++ b/backend.php @@ -88,6 +88,17 @@ 5 => __("Power User"), 10 => __("Administrator")); + // shortcut syntax for plugin methods (?op=plugin--pmethod&...params) + /* if (strpos($op, PluginHost::PUBLIC_METHOD_DELIMITER) !== false) { + list ($plugin, $pmethod) = explode(PluginHost::PUBLIC_METHOD_DELIMITER, $op, 2); + + // TODO: better implementation that won't modify $_REQUEST + $_REQUEST["plugin"] = $plugin; + $method = $pmethod; + $op = "pluginhandler"; + } */ + + // TODO: figure out if is this still needed $op = str_replace("-", "_", $op); $override = PluginHost::getInstance()->lookup_handler($op, $method); |