Merge branch 'master' into develop

This commit is contained in:
Shish 2015-01-25 23:00:07 +00:00
commit 99be9c2fdb
2 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class Handle404 extends Extension {
// hax.
if($page->mode == "page" && (!isset($page->blocks) || $this->count_main($page->blocks) == 0)) {
$h_pagename = html_escape(implode('/', $event->args));
$f_pagename = preg_replace("/[^a-z\.]+/", "_", $h_pagename);
$f_pagename = preg_replace("/[^a-z_\-\.]+/", "_", $h_pagename);
$theme_name = $config->get_string("theme", "default");
if(file_exists("themes/$theme_name/$f_pagename") || file_exists("lib/static/$f_pagename")) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB