1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

fixed nowplaying refresh

This commit is contained in:
Karl 'vollmerk' Vollmer 2007-07-24 02:09:07 +00:00
parent 7866186653
commit 0f9c1f245c
3 changed files with 4 additions and 10 deletions

View file

@ -31,13 +31,9 @@ $action = scrub_in($_REQUEST['action']);
* going to let them break their servers * going to let them break their servers
*/ */
if (Config::get('refresh_limit') > 5) { if (Config::get('refresh_limit') > 5) {
/*
$refresh_limit = Config::get('refresh_limit'); $refresh_limit = Config::get('refresh_limit');
$ajax_url = Config::get('ajax_url') . '?action=reloadnp' . Config::get('ajax_info'); $ajax_url = Config::get('ajax_url') . '?action=reloadnp';
$ajax_url = str_replace("&","&",$ajax_url);
require_once Config::get('prefix') . '/templates/javascript_refresh.inc.php'; require_once Config::get('prefix') . '/templates/javascript_refresh.inc.php';
*/
} }
require_once Config::get('prefix') . '/templates/show_index.inc.php'; require_once Config::get('prefix') . '/templates/show_index.inc.php';

View file

@ -220,11 +220,10 @@ switch ($action) {
$results['np_data'] = ob_get_contents(); $results['np_data'] = ob_get_contents();
ob_clean(); ob_clean();
$data = get_recently_played(); $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(); $results['recently_played'] = ob_get_contents();
ob_end_clean(); ob_end_clean();
$xml_doc = xml_from_array($results); echo xml_from_array($results);
echo $xml_doc;
break; break;
/* Setting ratings */ /* Setting ratings */
case 'set_rating': case 'set_rating':

View file

@ -42,7 +42,6 @@ function refresh()
} }
// start with page-load // start with page-load
doLoad; doLoad();
// End --> // End -->
</script> </script>