require_once $CFG->root . 'lib/utils.inc.php';
function error($error) {
- $util = Utils::getInstance();
+ $util = new Utils;
$util->setHeading("Error");
echo $util->getHeader();
echo $util->getHeading();
return $query;
}
- $util = Utils::getInstance();
+ $util = new Utils;
$loggedIn = $util->isLoggedIn();
$request = isset($_GET['op']) ? $_GET['op'] : '';
if ($loggedIn && isset($_GET['id'])) {