<?php
-/* vim: set ts=4 tw=0 sw=4 noet: */
+/* vim: set ts=4 tw=4 sw=4 noet: */
require_once 'config.php';
require_once $CFG->root . 'lib/db_factory.php';
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'])) {