cvs: smarty /libs Config_File.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1068758671@cvsserver> |
messju Thu Nov 13 16:24:31 2003 EDT
Modified files:
/smarty/libs Config_File.class.php
Log:
fix occasional notice
Index: smarty/libs/Config_File.class.php
diff -u smarty/libs/Config_File.class.php:1.56 smarty/libs/Config_File.class.php:1.57
--- smarty/libs/Config_File.class.php:1.56 Thu Nov 13 12:35:52 2003
+++ smarty/libs/Config_File.class.php Thu Nov 13 16:24:31 2003
@@ -31,7 +31,7 @@
* @package Smarty
*/
-/* $Id: Config_File.class.php,v 1.56 2003/11/13 17:35:52 mohrt Exp $ */
+/* $Id: Config_File.class.php,v 1.57 2003/11/13 21:24:31 messju Exp $ */
/**
* Config file reading class
* @package Smarty
@@ -260,7 +260,10 @@
$_triple_quotes = $match[1];
$_i = 0;
$contents = preg_replace('/""".*"""/Use', '"\x1b\x1b\x1b".$_i++."\x1b\x1b\x1b"', $contents);
+ } else {
+ $_triple_quotes = null;
}
+
/* Get global variables first. */
if ($contents{0} != '[' && preg_match("/^(.*?)(\n\[|\Z)/s", $contents, $match))
$config_data["vars"] = $this->_parse_config_block($match[1], $_triple_quotes);
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php