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

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1074815691@cvsserver>
messju		Thu Jan 22 18:54:51 2004 EDT

  Modified files:              
    /smarty/libs/plugins	function.config_load.php 
  Log:
  removed emission of unnecessary notices for unavailable config-files
  in config_load()
  
  
  
http://cvs.php.net/diff.php/smarty/libs/plugins/function.config_load.php?r1=1.20&r2=1.21&ty=u
Index: smarty/libs/plugins/function.config_load.php
diff -u smarty/libs/plugins/function.config_load.php:1.20 smarty/libs/plugins/function.config_load.php:1.21
--- smarty/libs/plugins/function.config_load.php:1.20	Wed Jan 21 12:21:26 2004
+++ smarty/libs/plugins/function.config_load.php	Thu Jan 22 18:54:51 2004
@@ -75,7 +75,9 @@
                 $smarty->_conf_obj->fix_newlines = $smarty->config_fix_newlines;
             }
             $_params = array('resource_name' => $_file, 'resource_base_path' => $smarty->config_dir);
-            $smarty->_fetch_resource_info($_params);
+            if (!$smarty->_fetch_resource_info($_params)) {
+                return;
+            }
             $smarty->_conf_obj->set_file_contents($_file, $_params['source_content']);
             $_config_vars = array_merge($smarty->_conf_obj->get($_file),
                     $smarty->_conf_obj->get($_file, $_section));

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