You are here

function Smarty::_include in Quiz 6.5

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

wrapper for include() retaining $this

Return value

mixed

File

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

Class

Smarty
@package Smarty

Code

function _include($filename, $once = false, $params = null) {
  if ($once) {
    return include_once $filename;
  }
  else {
    return include $filename;
  }
}