From 731f8888a45d4b48e94bff05187e0e2ca40d4ef5 Mon Sep 17 00:00:00 2001 From: patdenice Date: Tue, 14 Dec 2010 13:47:24 +0000 Subject: feature 2060: Remove adviser mode. First commit: only php files. git-svn-id: http://piwigo.org/svn/trunk@8126 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/configuration.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'admin/configuration.php') diff --git a/admin/configuration.php b/admin/configuration.php index 0f088cc3e..36a2901ae 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -106,7 +106,7 @@ $display_info_checkboxes = array( ); //------------------------------ verification and registration of modifications -if (isset($_POST['submit']) and !is_adviser()) +if (isset($_POST['submit'])) { $int_pattern = '/^\d+$/'; @@ -323,14 +323,11 @@ switch ($page['section']) include_once(PHPWG_ROOT_PATH.'profile.php'); $errors = array(); - if ( !is_adviser() ) + if (save_profile_from_post($edit_user, $errors)) { - if (save_profile_from_post($edit_user, $errors)) - { - // Reload user - $edit_user = build_user($conf['guest_id'], false); - array_push($page['infos'], l10n('Information data registered in database')); - } + // Reload user + $edit_user = build_user($conf['guest_id'], false); + array_push($page['infos'], l10n('Information data registered in database')); } $page['errors'] = array_merge($page['errors'], $errors); -- cgit v1.2.3