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

"boots" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsboots1070066949@cvsserver>
boots		Fri Nov 28 19:49:09 2003 EDT

  Modified files:              
    /smarty/libs/plugins	function.config_load.php 
  Log:
  changed $smarty->_syntax_error to $smarty->trigger_error
  
Index: smarty/libs/plugins/function.config_load.php
diff -u smarty/libs/plugins/function.config_load.php:1.14 smarty/libs/plugins/function.config_load.php:1.15
--- smarty/libs/plugins/function.config_load.php:1.14	Thu Aug 14 06:59:30 2003
+++ smarty/libs/plugins/function.config_load.php	Fri Nov 28 19:49:09 2003
@@ -36,14 +36,14 @@
 		$_global = isset($params['global']) ? $smarty->_dequote($params['global']) : false;
 
         if (!isset($_file) || strlen($_file) == 0) {
-            $smarty->_syntax_error("missing 'file' attribute in config_load tag", E_USER_ERROR, __FILE__, __LINE__);
+            $smarty->trigger_error("missing 'file' attribute in config_load tag", E_USER_ERROR, __FILE__, __LINE__);
         }
 
         if (isset($_scope)) {
             if ($_scope != 'local' &&
                 $_scope != 'parent' &&
                 $_scope != 'global') {
-                $smarty->_syntax_error("invalid 'scope' attribute value", E_USER_ERROR, __FILE__, __LINE__);
+                $smarty->trigger_error("invalid 'scope' attribute value", E_USER_ERROR, __FILE__, __LINE__);
             }
         } else {
             if ($_global) {
@@ -51,10 +51,10 @@
 			} else {
                 $_scope = 'local';
 			}
-        }		
-			
+        }
+
         if(@is_dir($smarty->config_dir)) {
-            $_config_dir = $smarty->config_dir;            
+            $_config_dir = $smarty->config_dir;
         } else {
             // config_dir not found, try include_path
 			$_params = array('file_path' => $smarty->config_dir);
@@ -64,11 +64,11 @@
         }
 
 		$_file_path = $_config_dir . DIRECTORY_SEPARATOR . $_file;
-        if (isset($_section)) 
+        if (isset($_section))
             $_compile_file = $smarty->_get_compile_path($_file_path.'|'.$_section);
         else
             $_compile_file = $smarty->_get_compile_path($_file_path);
-		
+
 		if($smarty->force_compile
 				|| !file_exists($_compile_file)
 				|| ($smarty->compile_check
@@ -103,7 +103,7 @@
 
         $smarty->_config[0]['vars'] = @array_merge($smarty->_config[0]['vars'], $_config_vars);
         $smarty->_config[0]['files'][$_file] = true;
-        
+
         if ($_scope == 'parent') {
                 $smarty->_config[1]['vars'] = @array_merge($smarty->_config[1]['vars'], $_config_vars);
                 $smarty->_config[1]['files'][$_file] = true;
@@ -113,7 +113,7 @@
                     $smarty->_config[$i]['files'][$_file] = true;
             }
         }
-		
+
         if ($smarty->debugging) {
 			$_params = array();
 			require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_microtime.php');
@@ -122,7 +122,7 @@
                                                 'depth'     => $smarty->_inclusion_depth,
                                                 'exec_time' => smarty_core_get_microtime($_params, $smarty) - $_debug_start_time);
         }
-	
+
 }
 
 /* vim: set expandtab: */

-- 
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.