From da4199c418dae544e29bea8bc44801de778e29f1 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 26 Nov 2007 00:44:22 +0000 Subject: fixed a missing ob_end_flush() on the catalog create --- admin/catalog.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/catalog.php b/admin/catalog.php index 7e37c32e..9a873d17 100644 --- a/admin/catalog.php +++ b/admin/catalog.php @@ -19,7 +19,7 @@ */ -require '../lib/init.php'; +require_once '../lib/init.php'; if (!$GLOBALS['user']->has_access(100)) { access_denied(); @@ -158,6 +158,8 @@ switch ($_REQUEST['action']) { /* Wah Demo! */ if (Config::get('demo_mode')) { break; } + ob_end_flush(); + if (!strlen($_REQUEST['path']) || !strlen($_REQUEST['name'])) { Error::add('general','Error Name and path not specified'); } @@ -173,7 +175,7 @@ switch ($_REQUEST['action']) { // If an error hasn't occured if (!Error::$state) { - $catalog_id = Catalog::create($_REQUEST); + $catalog_id = Catalog::Create($_REQUEST); if (!$catalog_id) { require Config::get('prefix') . '/templates/show_add_catalog.inc.php'; -- cgit