cvs: smarty / NEWS /libs Smarty.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1088696920@cvsserver>
messju		Thu Jul  1 11:48:40 2004 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs	Smarty.class.php 
  Log:
  removed use of get_include_filepath() inside
  get_auto_filename(). thanks go to c960657
  
  
  
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.459&r2=1.460&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.459 smarty/NEWS:1.460
--- smarty/NEWS:1.459	Thu Jul  1 11:39:34 2004
+++ smarty/NEWS	Thu Jul  1 11:48:40 2004
@@ -1,3 +1,5 @@
+  - fix unnecessary call to smarty_core_get_include_path() inside
+    Smarty::_get_auto_filename() (c960657, messju)
   - add error-messages when anything else than an identifier is passed
     to foreach's key- or item-attribute (messju)
   - fix handling of digits inside tagnames (messju)
http://cvs.php.net/diff.php/smarty/libs/Smarty.class.php?r1=1.491&r2=1.492&ty=u
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.491 smarty/libs/Smarty.class.php:1.492
--- smarty/libs/Smarty.class.php:1.491	Thu Jun 17 04:55:09 2004
+++ smarty/libs/Smarty.class.php	Thu Jul  1 11:48:40 2004
@@ -30,7 +30,7 @@
  * @version 2.6.4-dev
  */
 
-/* $Id: Smarty.class.php,v 1.491 2004/06/17 08:55:09 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.492 2004/07/01 15:48:40 messju Exp $ */
 
 /**
  * DIR_SEP isn't used anymore, but third party apps might
@@ -1727,16 +1727,7 @@
     function _get_auto_filename($auto_base, $auto_source = null, $auto_id = null)
     {
         $_compile_dir_sep =  $this->use_sub_dirs ? DIRECTORY_SEPARATOR : '^';
-
-        if(@is_dir($auto_base)) {
-            $_return = $auto_base . DIRECTORY_SEPARATOR;
-        } else {
-            // auto_base not found, try include_path
-            $_params = array('file_path' => $auto_base);
-            require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_include_path.php');
-            smarty_core_get_include_path($_params, $this);
-            $_return = isset($_params['new_file_path']) ? $_params['new_file_path'] . DIRECTORY_SEPARATOR : null;
-        }
+        $_return = $auto_base . DIRECTORY_SEPARATOR;
 
         if(isset($auto_id)) {
             // make auto_id safe for directory names

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