make error template more usable
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@483
6e3c4bff-ac9f-4ac1-96c5-
d2ea494d3e33
$event = new Event($eventID);
if (!$event->exists())
{
- header("Location:index.php");
+ redirectHome(array());
return;
}
public function __construct()
{
//make sure we have a session
- new Session($this);
+ global $session;
+ if(!isset($session))new Session($this);
}
protected function startTransaction($updating)
+<html>
+<title>Error</title>
+<body>
<h1>Error</h1>
{{ErrorText}}
<hr/>
-<a href="@SCRIPT@">Back to Index</a>
+<a href="{{script.root}}">Back to Index</a>
+</html>
\ No newline at end of file