You are here

function Smarty::Smarty in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/smarty/Smarty.class.php \Smarty::Smarty()

The class constructor.

File

includes/moodle/lib/smarty/Smarty.class.php, line 567

Class

Smarty
@package Smarty

Code

function Smarty() {
  $this
    ->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']);
}