]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #479 from ArthurHoaro/pluginsadmin-error-url
authorArthur <arthur@hoa.ro>
Mon, 15 Feb 2016 19:38:31 +0000 (20:38 +0100)
committerArthur <arthur@hoa.ro>
Mon, 15 Feb 2016 19:38:31 +0000 (20:38 +0100)
Fixes typo in plugin admin redirection URL

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);