Revert "Added location_map_regex"

This commit is contained in:
Daniel Preussker
2016-02-09 20:00:54 +01:00
parent 3b19af910b
commit 1110836662
4 changed files with 2 additions and 17 deletions

View File

@@ -5,15 +5,6 @@ function rewrite_location($location) {
// FIXME -- also check the database for rewrites?
global $config, $debug;
if (is_array($config['location_map_regex'])) {
foreach ($config['location_map_regex'] as $reg => $val) {
if (preg_match($reg, $location)) {
$location = $val;
continue;
}
}
}
if (isset($config['location_map'][$location])) {
$location = $config['location_map'][$location];
}