From 5a8920295cb951493bf3aeae56a021204bfe6d36 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 29 Jul 2005 18:30:01 +0200 Subject: fallback to default template if custom one is not available darcs-hash:20050729163001-7ad00-24d0768ecd593ab85fda0e3c5fbdbec0e8ff3276.gz --- lib/exe/detail.php | 2 +- lib/exe/media.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/exe/detail.php b/lib/exe/detail.php index 1c676323f..6e2ae96c6 100644 --- a/lib/exe/detail.php +++ b/lib/exe/detail.php @@ -39,7 +39,7 @@ //start output and load template header('Content-Type: text/html; charset=utf-8'); - include(DOKU_INC.'lib/tpl/'.$conf['template'].'/detail.php'); + include(template('detail.php')); //restore old umask umask($conf['oldumask']); diff --git a/lib/exe/media.php b/lib/exe/media.php index 14474cb0c..c8db37153 100644 --- a/lib/exe/media.php +++ b/lib/exe/media.php @@ -53,9 +53,9 @@ //start output and load template header('Content-Type: text/html; charset=utf-8'); if($conf['refshow'] && count($mediareferences)){ - include(DOKU_INC.'lib/tpl/'.$conf['template'].'/mediaref.php'); + include(template('mediaref.php')); }else{ - include(DOKU_INC.'lib/tpl/'.$conf['template'].'/media.php'); + include(template('media.php')); } //restore old umask -- cgit v1.2.3