瀏覽代碼

Use $org_name instead of hard-coding "SquirrelMail"

pdontthink 18 年之前
父節點
當前提交
40e1b05a6e
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/options.php

+ 6 - 4
src/options.php

@@ -285,7 +285,7 @@ if ($optpage == SMOPT_PAGE_MAIN) {
     }
     
     if (!empty($notice)) {
-        $oTemplate->assign('note', $notice);
+        $oTemplate->assign('note', $notice, FALSE);
         $oTemplate->display('note.tpl');
     }
     
@@ -424,13 +424,15 @@ if ($optpage == SMOPT_PAGE_MAIN) {
          "  <td colspan=\"2\">\n";
 
     // This is the only variable that is needed by *just* the template.
-    $oTemplate->assign('options', $optpage_data['options']);
+    // No output sanitizing needed because all widgets added through 
+    // template output already
+    $oTemplate->assign('options', $optpage_data['options'], FALSE);
     
-    global $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) );
     }
     
     /**