summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-26 00:44:22 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-26 00:44:22 +0000
commitda4199c418dae544e29bea8bc44801de778e29f1 (patch)
tree2fc8814157cb06d472b8ed69de58af2a9ae89288
parenta26521f943b46c15059142b2e8d32f03a8a2f747 (diff)
downloadampache-da4199c418dae544e29bea8bc44801de778e29f1.tar.gz
ampache-da4199c418dae544e29bea8bc44801de778e29f1.tar.bz2
ampache-da4199c418dae544e29bea8bc44801de778e29f1.zip
fixed a missing ob_end_flush() on the catalog create
-rw-r--r--admin/catalog.php6
1 files 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';