projects
/
songbook.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed Behind Blue Eyes
[songbook.git]
/
web
/
displayset.php
diff --git
a/web/displayset.php
b/web/displayset.php
index
111c43a
..
dbce735
100644
(file)
--- a/
web/displayset.php
+++ b/
web/displayset.php
@@
-31,7
+31,7
@@
width: 100%;
<div id="content">
<?php
<div id="content">
<?php
-global $songDir;
+global $songDir
, $artists
;
print "<ol>";
print "<ol>";
@@
-61,14
+61,18
@@
foreach (file("$songDir/$set") as $line) {
print basename ($song);
}
print basename ($song);
}
- if ($artist <> "") {
- print " - <a href=\"displayartist.php?artist=$artist\">$artist</a>";
+ print " - ";
+
+ if (in_array ($artist, $artists)) {
+ print "<a href=\"displayartist.php?artist=$artist\">$artist</a>";
+ } else {
+ print $artist;
} // if
print "</li>";
} // foreach
} // if
print "</li>";
} // foreach
-print "</o
kkk
l>";
+print "</ol>";
?>
</body>
?>
</body>