]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Fixes typo in plugin admin redirection URL
[github/shaarli/Shaarli.git] / index.php
index 64ec809e1817676adb07763f65551e65dc146439..67290f6fe9b68f0f20254e5315949ba6a4a786e0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1123,9 +1123,9 @@ function renderPage()
     // Call plugin hooks for header, footer and includes, specifying which page will be rendered.
     // Then assign generated data to RainTPL.
     $common_hooks = array(
+        'includes',
         'header',
         'footer',
-        'includes',
     );
     $pluginManager = PluginManager::getInstance();
     foreach($common_hooks as $name) {
@@ -1815,7 +1815,7 @@ HTML;
             );
 
             // TODO: do not handle exceptions/errors in JS.
-            echo '<script>alert("'. $e->getMessage() .'");document.location=\'?do=pluginsadmin\';</script>';
+            echo '<script>alert("'. $e->getMessage() .'");document.location=\'?do='. Router::$PAGE_PLUGINSADMIN .'\';</script>';
             exit;
         }
         header('Location: ?do='. Router::$PAGE_PLUGINSADMIN);