mirror of
https://github.com/danbee/neompc
synced 2025-03-04 08:39:10 +00:00
~ Modified track_sort function so that it sorts directories properly.
+ Added <meta http-equiv="content-type" content="text/html; charset=UTF-8" />, which should fix most international character problems.
This commit is contained in:
parent
b46e8f7441
commit
380e95b06e
@ -22,7 +22,26 @@
|
||||
/* track number sorting function */
|
||||
|
||||
function track_sort($a, $b) {
|
||||
return $a['Track'] - $b['Track'];
|
||||
if ($a['directory'] && $b['directory']) {
|
||||
if ($a['directory'] < $b['directory']) {
|
||||
return -1;
|
||||
}
|
||||
elseif ($a['directory'] > $b['directory']) {
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
elseif ($a['directory'] && !$b['directory']) {
|
||||
return 1;
|
||||
}
|
||||
elseif (!$a['directory'] && $b['directory']) {
|
||||
return -1;
|
||||
}
|
||||
else {
|
||||
return $a['Track'] - $b['Track'];
|
||||
}
|
||||
}
|
||||
|
||||
/* setup some global vars */
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
<!doctype html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Neo MPC 0.2</title>
|
||||
<title>Neo MPC 0.2</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<style>
|
||||
{include file="default/styles.css"}
|
||||
@ -19,4 +22,4 @@
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user