X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FRouter.php;h=6185f08e932c742806135767792d6f3c2cf8e7bc;hb=250f132879bb7a1f7de4c8b87c5ceec5b4b72d14;hp=0c813847b282162c40e61ae6a2e16e83a34d3508;hpb=2f3e74090ae1b79845f431800c0fb08eeae24c30;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Router.php b/application/Router.php index 0c813847..6185f08e 100644 --- a/application/Router.php +++ b/application/Router.php @@ -35,6 +35,10 @@ class Router public static $PAGE_LINKLIST = 'linklist'; + public static $PAGE_PLUGINSADMIN = 'pluginadmin'; + + public static $PAGE_SAVE_PLUGINSADMIN = 'save_pluginadmin'; + /** * Reproducing renderPage() if hell, to avoid regression. * @@ -112,6 +116,14 @@ class Router return self::$PAGE_IMPORT; } + if (startswith($query, 'do='. self::$PAGE_PLUGINSADMIN)) { + return self::$PAGE_PLUGINSADMIN; + } + + if (startswith($query, 'do='. self::$PAGE_SAVE_PLUGINSADMIN)) { + return self::$PAGE_SAVE_PLUGINSADMIN; + } + return self::$PAGE_LINKLIST; } } \ No newline at end of file