mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00
fixed nowplaying refresh
This commit is contained in:
parent
7866186653
commit
0f9c1f245c
3 changed files with 4 additions and 10 deletions
|
@ -31,13 +31,9 @@ $action = scrub_in($_REQUEST['action']);
|
|||
* going to let them break their servers
|
||||
*/
|
||||
if (Config::get('refresh_limit') > 5) {
|
||||
/*
|
||||
$refresh_limit = Config::get('refresh_limit');
|
||||
$ajax_url = Config::get('ajax_url') . '?action=reloadnp' . Config::get('ajax_info');
|
||||
|
||||
$ajax_url = str_replace("&","&",$ajax_url);
|
||||
$ajax_url = Config::get('ajax_url') . '?action=reloadnp';
|
||||
require_once Config::get('prefix') . '/templates/javascript_refresh.inc.php';
|
||||
*/
|
||||
}
|
||||
|
||||
require_once Config::get('prefix') . '/templates/show_index.inc.php';
|
||||
|
|
|
@ -220,11 +220,10 @@ switch ($action) {
|
|||
$results['np_data'] = ob_get_contents();
|
||||
ob_clean();
|
||||
$data = get_recently_played();
|
||||
if (count($data)) { require_once(conf('prefix') . '/templates/show_recently_played.inc.php'); }
|
||||
if (count($data)) { require_once Config::get('prefix') . '/templates/show_recently_played.inc.php'; }
|
||||
$results['recently_played'] = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$xml_doc = xml_from_array($results);
|
||||
echo $xml_doc;
|
||||
echo xml_from_array($results);
|
||||
break;
|
||||
/* Setting ratings */
|
||||
case 'set_rating':
|
||||
|
|
|
@ -42,7 +42,6 @@ function refresh()
|
|||
}
|
||||
|
||||
// start with page-load
|
||||
doLoad;
|
||||
doLoad();
|
||||
// End -->
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue