summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php
index af0123fcd..f40c8f1fd 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -397,6 +397,16 @@ function rawWiki($id,$rev=''){
}
/**
+ * Returns the pagetemplate contents for the ID's namespace
+ *
+ * @author Andreas Gohr <andi@splitbrain.org>
+ */
+function pageTemplate($id){
+ return io_readFile(dirname(wikiFN($id)).'/_template.txt');
+}
+
+
+/**
* Returns the raw Wiki Text in three slices.
*
* The range parameter needs to have the form "from-to"