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

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1077661394@cvsserver>
messju		Tue Feb 24 17:23:14 2004 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs	Smarty.class.php 
  Log:
  _parse_resource_name() returned true on non-existant absolute
  paths. This caused a warning on _fetch_resource_info() when used in
  conjunction with template_exists(). It should be fixed now without
  negative effects.
  
  
  
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.439&r2=1.440&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.439 smarty/NEWS:1.440
--- smarty/NEWS:1.439	Mon Feb 23 19:10:54 2004
+++ smarty/NEWS	Tue Feb 24 17:23:13 2004
@@ -1,3 +1,4 @@
+  - fix avoid warning with template_exists() on an absolute paths (messju)
   - fix parameters passed to resource's secure()-function (messju)
   - fix handling of integer values like width and delay im
     smarty_function_popup() (messju)
http://cvs.php.net/diff.php/smarty/libs/Smarty.class.php?r1=1.478&r2=1.479&ty=u
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.478 smarty/libs/Smarty.class.php:1.479
--- smarty/libs/Smarty.class.php:1.478	Mon Feb 23 18:14:40 2004
+++ smarty/libs/Smarty.class.php	Tue Feb 24 17:23:13 2004
@@ -30,7 +30,7 @@
  * @version 2.6.3-dev
  */
 
-/* $Id: Smarty.class.php,v 1.478 2004/02/23 23:14:40 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.479 2004/02/24 22:23:13 messju Exp $ */
 
 /**
  * DIR_SEP isn't used anymore, but third party apps might
@@ -1665,6 +1665,9 @@
                     }
                 }
                 return false;
+            } else {
+                /* absolute path */
+                return file_exists($params['resource_name']);
             }
         } elseif (empty($this->_plugins['resource'][$params['resource_type']])) {
             $_params = array('type' => $params['resource_type']);

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