]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Merge pull request #479 from ArthurHoaro/pluginsadmin-error-url
[github/shaarli/Shaarli.git] / index.php
index 5de60425c4c8bdadecdad5163918a5491c24d16c..4382bd808ff9f035c681b9232a6a76b348bea4cd 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1858,7 +1858,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);