From 8788403baa47a2803e8159f9b1aa09c95def0c22 Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 4 Feb 2015 15:23:21 +0100 Subject: [PATCH] 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 --- docs/NEWS | 4 ++++ templates/2k11/config.inc.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/NEWS b/docs/NEWS index 3a183e4a..bc55a05f 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -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 diff --git a/templates/2k11/config.inc.php b/templates/2k11/config.inc.php index 0e11f08d..c386d421 100644 --- a/templates/2k11/config.inc.php +++ b/templates/2k11/config.inc.php @@ -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',