summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 04:44:56 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 04:44:56 +0000
commit2148ecc8ac957beb53ac1be3b6d7aafba491b7aa (patch)
treee06011661938f27fce3b78f223dc4ea2e4aaa8bc
parenta93cc6b8ebb2d1bcd67aa91f670905f298d6d98e (diff)
downloadampache-2148ecc8ac957beb53ac1be3b6d7aafba491b7aa.tar.gz
ampache-2148ecc8ac957beb53ac1be3b6d7aafba491b7aa.tar.bz2
ampache-2148ecc8ac957beb53ac1be3b6d7aafba491b7aa.zip
added a browse by all, noticed a bug with browsing _very_ large lists causes it to pop know how to fix it, but I will do that tomorrow
-rw-r--r--lib/class/browse.class.php1
-rw-r--r--lib/ui.lib.php2
-rw-r--r--templates/show_songs.inc.php2
3 files changed, 3 insertions, 2 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php
index a5ea13b2..a652dd71 100644
--- a/lib/class/browse.class.php
+++ b/lib/class/browse.class.php
@@ -68,6 +68,7 @@ class Browse {
}
break;
case 'alpha_match':
+ if ($value == _('All')) { $value = ''; }
$_SESSION['browse']['filter'][$key] = $value;
break;
default:
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index ff863c78..5c0ec15a 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -126,7 +126,7 @@ function return_referer() {
*/
function show_alphabet_list () {
- $list = array(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,1,2,3,4,5,6,7,8,9,"0");
+ $list = array(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,1,2,3,4,5,6,7,8,9,"0",_('All'));
$style_name = "style_" . strtolower($selected);
${$style_name} = "style=\"font-weight:bold;\"";
diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php
index 047ae748..0230bc00 100644
--- a/templates/show_songs.inc.php
+++ b/templates/show_songs.inc.php
@@ -26,7 +26,7 @@ $ajax_url = Config::get('ajax_url');
?>
<table class="tabledata" cellspacing="0" cellpadding="0">
<tr class="table-header" align="center">
- <td colspan="7">
+ <td colspan="8">
<?php require Config::get('prefix') . '/templates/list_header.inc.php'; ?>
</td>
</tr>