speed hax and niceurl forcing from r34

This commit is contained in:
Shish
2011-12-24 14:49:55 +00:00
parent 913bb09cc6
commit 5121e99dbe
4 changed files with 18 additions and 5 deletions

View File

@ -178,7 +178,7 @@ function make_link($page=null, $query=null) {
if(is_null($page)) $page = $config->get_string('main_page');
if($config->get_bool('nice_urls', false)) {
if(FORCE_NICE_URLS || $config->get_bool('nice_urls', false)) {
#$full = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"];
$full = $_SERVER["PHP_SELF"];
$base = str_replace("/index.php", "", $full);