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:
Ian 2015-02-04 15:28:30 +01:00
parent a576ee8ec9
commit 3077b4747d
2 changed files with 5 additions and 1 deletions
docs
templates/2k11

@ -25,6 +25,10 @@ Version 2.1 ()
Version 2.0.1 ()
------------------------------------------------------------------------
* Change 2k11 config.inc.php to reflect proper
serendipity_getTemplateFile() when frontend files shall be
referenced within the backend.
* Fixed missing file message for deleted media items
* Fixed entry editor JS not emitting a 'No tags' msg in taxonomy

@ -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',