summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-07-29 18:30:01 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-07-29 18:30:01 +0200
commit5a8920295cb951493bf3aeae56a021204bfe6d36 (patch)
treee3f78d8491e3fb1340b5d2c7b295fa7ce2d04e04 /lib
parent424c3c4f29261765eec496ad226297815d75f4c1 (diff)
downloadrpg-5a8920295cb951493bf3aeae56a021204bfe6d36.tar.gz
rpg-5a8920295cb951493bf3aeae56a021204bfe6d36.tar.bz2
fallback to default template if custom one is not available
darcs-hash:20050729163001-7ad00-24d0768ecd593ab85fda0e3c5fbdbec0e8ff3276.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/exe/detail.php2
-rw-r--r--lib/exe/media.php4
2 files changed, 3 insertions, 3 deletions
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