[cc-commits] [CC SVN] r12620 - cchost/trunk/cchost_lib

webmaster at creativecommons.org webmaster at creativecommons.org
Thu May 14 14:50:32 EDT 2009


Author: fourstones
Date: 2009-05-14 18:50:32 +0000 (Thu, 14 May 2009)
New Revision: 12620

Modified:
   cchost/trunk/cchost_lib/cc-form.php
Log:
bug# 2789221 non-stringized str_ when adding menu items

Modified: cchost/trunk/cchost_lib/cc-form.php
===================================================================
--- cchost/trunk/cchost_lib/cc-form.php	2009-05-14 18:36:22 UTC (rev 12619)
+++ cchost/trunk/cchost_lib/cc-form.php	2009-05-14 18:50:32 UTC (rev 12620)
@@ -1227,7 +1227,7 @@
     }
 
     /**
-     * Handles generation <select HTML field with no string xlate
+     * Handles generation <select HTML field with gen-time string xlate
      * 
      * The 'options' field for the field descriptor must be an array
      * of options to be generated here
@@ -1242,6 +1242,7 @@
         $options = $this->GetFormFieldItem($varname,'options');
         $fvalue   = $this->GetFormValue($varname);
         $html = "<select id=\"$varname\" name=\"$varname\" class=\"$class\">";
+        $page =& CCPage::GetPage();
 
         foreach( $options as $value => $text )
         {
@@ -1249,8 +1250,8 @@
                 $selected = ' selected="selected" ';
             else
                 $selected = '';
-
-            $html .= "<option value=\"$value\" $selected >$text</option>";
+            $text = $page->String($text);
+            $html .= "<option value=\"$value\" $selected >{$text}</option>";
         }
         $html .= "</select>";
         return( $html );




More information about the cc-commits mailing list