cvs: smarty /libs/plugins function.html_select_time.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1071653610@cvsserver>
messju		Wed Dec 17 04:33:30 2003 EDT

  Modified files:              
    /smarty/libs/plugins	function.html_select_time.php 
  Log:
  remove extract-call from {html_select_time}
  
  
  
Index: smarty/libs/plugins/function.html_select_time.php
diff -u smarty/libs/plugins/function.html_select_time.php:1.10 smarty/libs/plugins/function.html_select_time.php:1.11
--- smarty/libs/plugins/function.html_select_time.php:1.10	Sun Apr 20 17:12:00 2003
+++ smarty/libs/plugins/function.html_select_time.php	Wed Dec 17 04:33:30 2003
@@ -44,7 +44,36 @@
     $second_extra       = null;
     $meridian_extra     = null;
 
-    extract($params);
+    foreach ($params as $_key=>$_value) {
+        switch ($_key) {
+            case 'prefix':
+            case 'time':
+            case 'field_array':
+            case 'all_extra':
+            case 'hour_extra':
+            case 'minute_extra':
+            case 'second_extra':
+            case 'meridian_extra':
+                $$_key = (string)$_value;
+                break;
+
+            case 'display_hours':
+            case 'display_minutes':
+            case 'display_seconds':
+            case 'display_meridian':
+            case 'use_24_hours':
+                $$_key = (bool)$_value;
+                break;
+
+            case 'minute_interval':
+            case 'second_interval':
+                $$_key = (int)$_value;
+                break;
+
+            default:
+                $smarty->trigger_error("[html_select_time] unknown parameter $_key", E_USER_WARNING);
+        }
+    }
 
     $time = smarty_make_timestamp($time);
 

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.