aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-01-19 23:34:42 +0000
committerplegall <plg@piwigo.org>2005-01-19 23:34:42 +0000
commit54e615890c434d09492c6ba0c623b23bbcc8d246 (patch)
tree09078da371c3b2c5f80fd12a5aa437f65a1c41db /admin
parentf760cdb9879ef3eafc0ec88c094c43a81b66e2bc (diff)
- bug fixed : in admin, username displayed in titles if needed even if only
user id was transmitted git-svn-id: http://piwigo.org/svn/trunk@708 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/admin.php b/admin.php
index fa08bae24..78050490f 100644
--- a/admin.php
+++ b/admin.php
@@ -34,7 +34,19 @@ include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
$page_valide = false;
$title = '';
$username='';
-if (isset($_POST['username'])) $username=$_POST['username'];
+if (isset($_POST['username']))
+{
+ $username = $_POST['username'];
+}
+else if (isset($_POST['userid']))
+{
+ $username = get_username($_POST['userid']);
+}
+else if (isset($_GET['user_id']))
+{
+ $username = get_username($_GET['user_id']);
+}
+
if (isset( $_GET['page'] ))
switch ( $_GET['page'] )
{