summaryrefslogtreecommitdiffstats
path: root/templates/list_header.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-08 05:15:34 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-08 05:15:34 +0000
commit73e70d7d9989e49fc7c34613bbcb1f5f339b3f2c (patch)
tree1fc9ffe3b964ef5c9e732215e007ae7c794d4507 /templates/list_header.inc.php
parentdda0815b08128ef66da98ab007ed1b57ac33fe50 (diff)
downloadampache-73e70d7d9989e49fc7c34613bbcb1f5f339b3f2c.tar.gz
ampache-73e70d7d9989e49fc7c34613bbcb1f5f339b3f2c.tar.bz2
ampache-73e70d7d9989e49fc7c34613bbcb1f5f339b3f2c.zip
fixed a long standing browsing issue where you could not browse two different things at the same time
Diffstat (limited to 'templates/list_header.inc.php')
-rw-r--r--templates/list_header.inc.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/templates/list_header.inc.php b/templates/list_header.inc.php
index e9cad734..63bf45db 100644
--- a/templates/list_header.inc.php
+++ b/templates/list_header.inc.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -90,14 +90,15 @@ while ($page <= $pages) {
// Sort These Arrays of Hotness
ksort($page_data['up']);
ksort($page_data['down']);
+$browse_type = Browse::get_type();
// are there enough items to even need this view?
if ($pages > 1) {
?>
<div class="list-header">
- <?php echo Ajax::text('?action=page&start=' . $prev_offset,_('Prev'),'browse_' . $uid . 'prev','','prev'); ?>
- <?php echo Ajax::text('?action=page&start=' . $next_offset,_('Next'),'browse_' . $uid . 'next','','next'); ?>
+ <?php echo Ajax::text('?page=browse&action=page&type=' . $browse_type . '&start=' . $prev_offset,_('Prev'),'browse_' . $uid . 'prev','','prev'); ?>
+ <?php echo Ajax::text('?page=browse&action=page&type=' . $browse_type . '&start=' . $next_offset,_('Next'),'browse_' . $uid . 'next','','next'); ?>
<?php
/* Echo Everything below us */
foreach ($page_data['down'] as $page => $offset) {
@@ -105,7 +106,7 @@ if ($pages > 1) {
else {
// Hack Alert
$page++;
- echo Ajax::text('?action=page&start=' . $offset,$page,'browse_' . $uid . 'page_' . $page,'','page-nb');
+ echo Ajax::text('?page=browse&action=page&type=' . $browse_type .'&start=' . $offset,$page,'browse_' . $uid . 'page_' . $page,'','page-nb');
}
} // end foreach down
@@ -119,7 +120,7 @@ if ($pages > 1) {
foreach ($page_data['up'] as $page=>$offset) {
if ($offset === '...') { echo '...&nbsp;'; }
else {
- echo Ajax::text('?action=page&start=' . $offset,$page,'browse_' . $uid . 'page_' . $page,'','page-nb');
+ echo Ajax::text('?page=browse&action=page&type=' . $browse_type . '&start=' . $offset,$page,'browse_' . $uid . 'page_' . $page,'','page-nb');
} // end else
} // end foreach up
?>