mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
made $SCRIPT_NAME available again
changes default for request_use_auto_global to prefer autoglobals
This commit is contained in:
3
NEWS
3
NEWS
@@ -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()
|
||||
|
@@ -287,7 +287,7 @@ class Smarty
|
||||
*
|
||||
* @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 @@ class Smarty
|
||||
*/
|
||||
function Smarty()
|
||||
{
|
||||
$this->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME']
|
||||
: @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user