Avoid E_STRICT errors
[squirrelmail.git] / src / options.php
index d4bb822f2f9e8182f53f0a45c546ed69c51673c9..b13e04a045c577e56a47a17c1ad1d930b3e93159 100644 (file)
@@ -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) );
     }
     
     /**