aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-03-14 23:52:47 +0000
committerrvelices <rv-github@modusoptimus.com>2006-03-14 23:52:47 +0000
commit1d22950cf6391f1037be9cd35288b36d62ea6fe5 (patch)
treec7f2b63e730da6f0a3b3310a95ad9a7de64bcff0 /admin
parent77aa54a32b1a3fd43cb6615bf5bba9360e21647c (diff)
fix: help button was not working in the site manager
fix: incorrect session deletion in maintenance.php git-svn-id: http://piwigo.org/svn/trunk@1080 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/maintenance.php9
-rw-r--r--admin/site_manager.php1
2 files changed, 3 insertions, 7 deletions
diff --git a/admin/maintenance.php b/admin/maintenance.php
index dcda4f401..0a5c3cd22 100644
--- a/admin/maintenance.php
+++ b/admin/maintenance.php
@@ -71,12 +71,7 @@ DELETE
}
case 'sessions' :
{
- $query = '
-DELETE
- FROM '.SESSIONS_TABLE.'
- WHERE expiration < NOW()
-;';
- pwg_query($query);
+ pwg_session_gc();
break;
}
case 'feeds' :
@@ -113,7 +108,7 @@ $template->assign_vars(
'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=maintenance',
)
);
-
+
// +-----------------------------------------------------------------------+
// | sending html code |
// +-----------------------------------------------------------------------+
diff --git a/admin/site_manager.php b/admin/site_manager.php
index c12ecdc50..b1cfff58e 100644
--- a/admin/site_manager.php
+++ b/admin/site_manager.php
@@ -201,6 +201,7 @@ SELECT galleries_url
}
$template->assign_vars( array(
+ 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=remote_site',
'F_ACTION' => PHPWG_ROOT_PATH.'admin.php'
.get_query_string_diff( array('action','site') )
) );