} else {
require_once 'HTML/Less/Functions.php';
+ require_once 'HTML/Less/Exception/Compiler.php';
if (method_exists('HTML_Less_Functions', $nameLC)) { // 1.
try {
$func = new HTML_Less_Functions($env, $this->currentFileInfo);
$result = call_user_func_array(array($func, $nameLC), $args);
} catch (Exception $e) {
- require_once 'HTML/Less/Exception/Compiler.php';
throw new HTML_Less_Exception_Compiler('error evaluating function `' . $this->name . '` ' . $e->getMessage() . ' index: ' . $this->index);
}
} elseif (isset($env->functions[$nameLC]) && is_callable($env->functions[$nameLC])) {
try {
$result = call_user_func_array($env->functions[$nameLC], $args);
} catch (Exception $e) {
- require_once 'HTML/Less/Exception/Compiler.php';
throw new HTML_Less_Exception_Compiler('error evaluating function `' . $this->name . '` ' . $e->getMessage() . ' index: ' . $this->index);
}
}