Fix scope.
authorJan Schneider <jan@horde.org>
Tue, 4 Jan 2011 16:47:33 +0000 (17:47 +0100)
committerJan Schneider <jan@horde.org>
Tue, 4 Jan 2011 16:47:33 +0000 (17:47 +0100)
chora/lib/Chora.php

index 24276c6..c874cbb 100644 (file)
@@ -89,7 +89,7 @@ class Chora
         }
 
         $GLOBALS['notification']->push($message, 'horde.error');
-        require $registry->get('templates', 'horde') . '/common-header.inc';
+        require $GLOBALS['registry']->get('templates', 'horde') . '/common-header.inc';
         require CHORA_TEMPLATES . '/menu.inc';
         require $GLOBALS['registry']->get('templates', 'horde') . '/common-footer.inc';
         exit;