summaryrefslogtreecommitdiffstats
path: root/classes/script_start.php
diff options
context:
space:
mode:
authorGit <git@what.cd>2011-11-22 08:00:17 +0000
committerGit <git@what.cd>2011-11-22 08:00:17 +0000
commitbc00e76aa1f55d7fe78545f6060078cb88a7ffda (patch)
tree5d41878ebe253008ded76db399c58bc43d4cdfbb /classes/script_start.php
parentbc3892a47440a6ab8f4c8f6818021e0fe7f9e73d (diff)
downloadGazelle-bc00e76aa1f55d7fe78545f6060078cb88a7ffda.zip
Gazelle-bc00e76aa1f55d7fe78545f6060078cb88a7ffda.tar.gz
Gazelle-bc00e76aa1f55d7fe78545f6060078cb88a7ffda.tar.bz2
Empty commit
Diffstat (limited to 'classes/script_start.php')
-rw-r--r--classes/script_start.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/classes/script_start.php b/classes/script_start.php
index 071405c..9ff601c 100644
--- a/classes/script_start.php
+++ b/classes/script_start.php
@@ -1635,10 +1635,11 @@ function display_artists($Artists, $MakeLink = true, $IncludeHyphen = true, $Esc
$Conductors = $Artists[5];
$DJs = $Artists[6];
- if (count($MainArtists) + count($Composers) + count($Conductors) == 0) {
+ if (count($MainArtists) + (count($Composers)<3?count($Composers):0) + count($Conductors) + count($DJs) == 0) {
return '';
}
+ // Various Composers is not needed and is ugly and should die
switch(count($Composers)) {
case 0:
break;
@@ -1648,12 +1649,10 @@ function display_artists($Artists, $MakeLink = true, $IncludeHyphen = true, $Esc
case 2:
$link .= display_artist($Composers[0], $MakeLink, $Escape).$ampersand.display_artist($Composers[1], $MakeLink, $Escape);
break;
- default:
- $link .= 'Various Composers';
}
$ComposerStr .= $link;
-
- if ((count($Composers) > 0) && (count($MainArtists) > 0)) {
+
+ if ((count($Composers) > 0) && (count($Composers) < 3) && (count($MainArtists) > 0)) {
$link .= ' performed by ';
}
@@ -1670,7 +1669,7 @@ function display_artists($Artists, $MakeLink = true, $IncludeHyphen = true, $Esc
$link .= 'Various Artists';
}
- if(!empty($Guests) && (count($MainArtists) + count($Composers) + count($Conductors) < 3)) {
+ if(!empty($Guests) && (count($MainArtists) + count($Composers) > 0) && (count($MainArtists) + count($Composers) + count($Conductors) < 3)) {
switch(count($Guests)) {
case 1:
$link .= ' with '.display_artist($Guests[0], $MakeLink, $Escape);
@@ -1681,7 +1680,7 @@ function display_artists($Artists, $MakeLink = true, $IncludeHyphen = true, $Esc
}
}
- if ((count($Conductors) > 0) && (count($MainArtists) + count($Composers) > 0)) {
+ if ((count($Conductors) > 0) && (count($MainArtists) + count($Composers) > 0) && (count($Composers) < 3 || count($MainArtists) > 0)) {
$link .= ' under ';
}
switch(count($Conductors)) {