Use strict frontend template fallback
in case it is used as a copy template, see http://board.s9y.org/viewtopic.php?f=11&p=10441860#p10441860 Extra Note by Garvin :) If you create a custom theme to be used with Serendipity 2.0+, use serendipity_getTemplateFile(..., 'serendipityHTTPPath', true) whenever you reference files that are relevant to the frontend output inside your config.inc.php file. The distinction of Backend and Frontend themes in Serendipity 2.0 will otherwise try to search for a file in the backend-directory of a theme, because the theme configuration screen is displayed within the backend, not the frontend
This commit is contained in:
parent
12eb66a669
commit
8788403baa
@ -40,6 +40,10 @@ Version 2.0.1 ()
|
||||
Version 2.0 (January 23rd, 2015)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Change 2k11 config.inc.php to reflect proper
|
||||
serendipity_getTemplateFile() when frontend files shall be
|
||||
referenced within the backend.
|
||||
|
||||
* Smarty fix for purging compiled files
|
||||
|
||||
* Fix wrong search page ordering when stable archive was active
|
||||
|
@ -50,7 +50,7 @@ $template_config = array(
|
||||
'var' => 'header_img',
|
||||
'name' => TWOK11_HEADER_IMG,
|
||||
'type' => 'media',
|
||||
'default' => serendipity_getTemplateFile('header.jpg')
|
||||
'default' => serendipity_getTemplateFile('header.jpg', 'serendipityHTTPPath', true)
|
||||
),
|
||||
array(
|
||||
'var' => 'webfonts',
|
||||
|
Loading…
x
Reference in New Issue
Block a user