summaryrefslogtreecommitdiffstats
path: root/templates/show_manage_catalogs.inc.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-10 05:33:57 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-10 05:33:57 +0000
commit7f3669335313adf9108119df4186a51a5f94e292 (patch)
treef8b488a09df2198723de5661b050bc31e112b7ab /templates/show_manage_catalogs.inc.php
parentc1ed41a16dcbf1a632ad2ac99b40174628bf072e (diff)
downloadampache-7f3669335313adf9108119df4186a51a5f94e292.tar.gz
ampache-7f3669335313adf9108119df4186a51a5f94e292.tar.bz2
ampache-7f3669335313adf9108119df4186a51a5f94e292.zip
Change Browse from static to instantiable. Among other things, fixes FS#13;
probably also breaks things. Most things appear to still work, but I may have missed some cases.
Diffstat (limited to 'templates/show_manage_catalogs.inc.php')
-rw-r--r--templates/show_manage_catalogs.inc.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/show_manage_catalogs.inc.php b/templates/show_manage_catalogs.inc.php
index 8ea5f460..86d32f32 100644
--- a/templates/show_manage_catalogs.inc.php
+++ b/templates/show_manage_catalogs.inc.php
@@ -48,9 +48,12 @@
</div>
<?php show_box_bottom(); ?>
<?php
- $catalog_ids = Catalog::get_catalogs();
- Browse::set_type('catalog');
- Browse::set_static_content(1);
- Browse::show_objects($catalog_ids);
+ $catalog_ids = Catalog::get_catalogs();
+ $browse = new Browse();
+ $browse->set_type('catalog');
+ $browse->set_static_content(true);
+ $browse->save_objects($catalog_ids);
+ $browse->show_objects($catalog_ids);
+ $browse->store();
?>