aboutsummaryrefslogtreecommitdiffstats
path: root/admin/profile.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-02-16 03:06:41 +0000
committerrvelices <rv-github@modusoptimus.com>2007-02-16 03:06:41 +0000
commitd9b6ce8e875128e0bcac16c09db67636370856d0 (patch)
treeff3c20b659c1bde4df2d122d622ba7702f324a65 /admin/profile.php
parentbbc2dc24191681c863badea1e04b08cf44e46dc5 (diff)
- adviser mode: added check on admin profile page and removed 2 read-only TAG_INPUT_ENABLED
- simplified tag code in picture.php - reduced size of dark/theme.css by combining selectors with identical content git-svn-id: http://piwigo.org/svn/trunk@1827 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/profile.php')
-rw-r--r--admin/profile.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/admin/profile.php b/admin/profile.php
index 0cf36e42c..2263a6fff 100644
--- a/admin/profile.php
+++ b/admin/profile.php
@@ -32,14 +32,18 @@ $edit_user = build_user( $_GET['user_id'], false );
include_once(PHPWG_ROOT_PATH.'profile.php');
-save_profile_from_post( $edit_user, $errors);
+$errors = array();
+if ( !is_adviser() )
+{
+ save_profile_from_post( $edit_user, $errors);
+}
load_profile_in_template(
get_root_url().'admin.php?page=profile&amp;user_id='.$edit_user['id'],
get_root_url().'admin.php?page=user_list',
$edit_user
);
-$page['errors'] = array_merge( $page['errors'], $errors);
+$page['errors'] = array_merge($page['errors'], $errors );
$template->set_filename('profile', 'admin/profile.tpl');
$template->assign_var_from_handle('ADMIN_CONTENT', 'profile');