Merge branch 'develop' of https://github.com/shish/shimmie2 into develop
This commit is contained in:
commit
d523781481
@ -14,7 +14,7 @@ class Handle404 extends Extension {
|
|||||||
// hax.
|
// hax.
|
||||||
if($page->mode == "page" && (!isset($page->blocks) || $this->count_main($page->blocks) == 0)) {
|
if($page->mode == "page" && (!isset($page->blocks) || $this->count_main($page->blocks) == 0)) {
|
||||||
$h_pagename = html_escape(implode('/', $event->args));
|
$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");
|
$theme_name = $config->get_string("theme", "default");
|
||||||
|
|
||||||
if(file_exists("themes/$theme_name/$f_pagename") || file_exists("lib/static/$f_pagename")) {
|
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 |
Loading…
x
Reference in New Issue
Block a user