summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-31 07:50:45 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-31 07:50:45 +0000
commitfe4774127f292ce94ab79771bc72cbb7ca4db371 (patch)
treed8cba0fe9520260c86f8a7cbe9b06bc077780ce8 /lib/ui.lib.php
parent9e5afd340f0fd74c0da852be1f24cfe5285e38e8 (diff)
downloadampache-fe4774127f292ce94ab79771bc72cbb7ca4db371.tar.gz
ampache-fe4774127f292ce94ab79771bc72cbb7ca4db371.tar.bz2
ampache-fe4774127f292ce94ab79771bc72cbb7ca4db371.zip
fixed a mistake on the ratings, added it to artist and fixed location detection
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r--lib/ui.lib.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index 1f1665d6..77693a05 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -986,7 +986,8 @@ function get_location() {
}
/* Sanatize the $_SERVER['PHP_SELF'] variable */
- $location['page'] = preg_replace("/^\/(.+\.php)\/?.*/","$1",$source);
+ $source = str_replace(conf('raw_web_path'),"",$source);
+ $location['page'] = preg_replace("/^\/(.+\.php)\/?.*/","$1",$source);
switch ($location['page']) {
case 'index.php':