diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-19 23:07:52 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-05-05 18:10:45 +1000 |
| commit | fa13f0ef35c8da2e01618c5289ecbb082bb54e73 (patch) | |
| tree | 1335f36a431c00e80e6c987c712752cfc22eb404 /inc/functions.php | |
| parent | 38130cd11394db2d7e406bcbee08dfbcc359696c (diff) | |
Bugfix: purge() while in CLI-mode
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index 3ca5f599..d9af4e6a 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -339,7 +339,7 @@ function boardTitle($uri) { function purge($uri) { global $config, $debug; - if (preg_match($config['referer_match'], $config['root']) && isset($_SERVER['REQUEST_URI'])) { + if (preg_match($config['referer_match'], $config['root'])) { $uri = (str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) == '/' ? '/' : str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) . '/') . $uri; } else { $uri = $config['root'] . $uri; |
