cvs: smarty / NEWS /libs Smarty.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1072518103@cvsserver> |
messju Sat Dec 27 04:41:43 2003 EDT
Modified files:
/smarty NEWS
/smarty/libs Smarty.class.php
Log:
made $SCRIPT_NAME available again
changes default for request_use_auto_global to prefer autoglobals
Index: smarty/NEWS
diff -u smarty/NEWS:1.420 smarty/NEWS:1.421
--- smarty/NEWS:1.420 Sat Dec 27 04:25:24 2003
+++ smarty/NEWS Sat Dec 27 04:41:43 2003
@@ -1,3 +1,6 @@
+ - change default of request_use_auto_globals to true - $_SERVER is
+ now preferred over $HTTP_SERVER_VARS (messju)
+ - re-add support for $SCRIPT_NAME (messju)
- reactivate $smarty->default_modifiers (messju)
- add cookie persistance to debug console (Monte)
- allow single-digit days and months without smarty_make_timestamp()
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.468 smarty/libs/Smarty.class.php:1.469
--- smarty/libs/Smarty.class.php:1.468 Sat Dec 27 04:35:08 2003
+++ smarty/libs/Smarty.class.php Sat Dec 27 04:41:43 2003
@@ -43,7 +43,7 @@
* @version 2.6.1-dev
*/
-/* $Id: Smarty.class.php,v 1.468 2003/12/27 09:35:08 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.469 2003/12/27 09:41:43 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -287,7 +287,7 @@
*
* @var boolean
*/
- var $request_use_auto_globals = false;
+ var $request_use_auto_globals = true;
/**
* Set this if you want different sets of compiled files for the same
@@ -583,6 +583,8 @@
*/
function Smarty()
{
+ $this->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME']
+ : @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']);
}
/**
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php