summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-07-07 18:04:17 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-07-07 18:04:17 +0000
commit5309befb10fc612adb71ebefd926355fcf7c5aa0 (patch)
treeb764ebdaad8ce4d5e878fc4d6b31e68867675a95 /admin
parent7183b2c793b91e551610d2699feaf3b58edccd22 (diff)
downloadliberty-5309befb10fc612adb71ebefd926355fcf7c5aa0.tar.gz
liberty-5309befb10fc612adb71ebefd926355fcf7c5aa0.tar.bz2
liberty-5309befb10fc612adb71ebefd926355fcf7c5aa0.zip
replace header with bit_redirect and remove unnecessary multiple page reloads after plugin reset
Diffstat (limited to 'admin')
-rw-r--r--admin/plugins.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/admin/plugins.php b/admin/plugins.php
index 2f906b6..c0a33f1 100644
--- a/admin/plugins.php
+++ b/admin/plugins.php
@@ -12,15 +12,7 @@ if( !empty( $_REQUEST['reset_all_plugins'] ) ) {
// this scanAllPlugins is required. who knows why this stuff is so resilient
$gLibertySystem->scanAllPlugins();
- header( "Location: ".LIBERTY_PKG_URL."admin/plugins.php?another_reload=1" );
-}
-
-// this stuff is pretty insane. calling scanAllPlugins() multiple times
-// won't do the trick. we actually need to reload the page twice!
-// (perhaps someone else can find the reason for this and come up with a
-// cleaner solution)
-if( !empty( $_REQUEST['another_reload'] ) ) {
- header( "Location: ".LIBERTY_PKG_URL."admin/plugins.php" );
+ bit_redirect( LIBERTY_PKG_URL."admin/plugins.php" );
}
// Since the normal startup only loads the plugins marked active