X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Foptions.php;h=b13e04a045c577e56a47a17c1ad1d930b3e93159;hp=d4bb822f2f9e8182f53f0a45c546ed69c51673c9;hb=beb1a2f1304e4e6e2c22027bfc08380d75329509;hpb=209e24bb063cb116e8564e226e0a2687276cb9d5 diff --git a/src/options.php b/src/options.php index d4bb822f..b13e04a0 100644 --- a/src/options.php +++ b/src/options.php @@ -13,6 +13,9 @@ * @subpackage prefs */ +/** This is the options page */ +define('PAGE_NAME', 'options'); + /** * Include the SquirrelMail initialization file. */ @@ -237,7 +240,7 @@ if ($optmode == SMOPT_MODE_SUBMIT) { /* Finally, display whatever page we are supposed to show now. */ /***************************************************************/ -displayPageHeader($color, 'None', (isset($optpage_data['xtra']) ? $optpage_data['xtra'] : '')); +displayPageHeader($color, null, (isset($optpage_data['xtra']) ? $optpage_data['xtra'] : '')); /* * The main option page has a different layout then the rest of the option @@ -426,11 +429,11 @@ if ($optpage == SMOPT_PAGE_MAIN) { // This is the only variable that is needed by *just* the template. $oTemplate->assign('options', $optpage_data['options']); - global $ask_user_info; - if ( $optpage = SMOPT_PAGE_PERSONAL && $ask_user_info + global $ask_user_info, $org_name; + if ( $optpage == SMOPT_PAGE_PERSONAL && $ask_user_info && getPref($data_dir, $username,'email_address') == "" ) { $oTemplate->assign('topmessage', - _("Welcome to SquirrelMail. Please supply your full name and email address.") ); + sprintf(_("Welcome to %s. Please supply your full name and email address."), $org_name) ); } /**