Backend for songs.zachdecook.com
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index bc25f51..9520ed3 100755
--- a/index.php
+++ b/index.php
@@ -85,7 +85,9 @@ include 'page.php';
$song_number = isset( $_GET['song'] ) ? $_GET['song'] : '';
if( ! $song_number )
{
- echo toc();
+ $sort = '';
+ if ( isset( $_GET['sort'] ) ) $sort = $_GET['sort'];
+ echo toc($sort);
}
else
{