mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
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.
This commit is contained in:
parent
c1ed41a16d
commit
7f36693353
39 changed files with 754 additions and 673 deletions
|
@ -75,10 +75,11 @@ switch ($_REQUEST['action']) {
|
|||
$results['rightbar'] = ajax_include('rightbar.inc.php');
|
||||
|
||||
// Now setup the browse and show them below!
|
||||
Browse::set_type('song');
|
||||
Browse::save_objects($object_ids);
|
||||
$browse = new Browse();
|
||||
$browse->set_type('song');
|
||||
$browse->save_objects($object_ids);
|
||||
ob_start();
|
||||
Browse::show_objects();
|
||||
$browse->show_objects();
|
||||
$results['browse'] = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue