summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-08-06 23:20:00 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-08-06 23:20:00 +0200
commit1380fc452d56dd6f48ddbfa3a6b0e69edd043b04 (patch)
tree0654df1e2d7a86be45be1ced2624e73e1a4e565a /inc/pageutils.php
parentb158d625b53833ef391800a991ad93d965d9425e (diff)
downloadrpg-1380fc452d56dd6f48ddbfa3a6b0e69edd043b04.tar.gz
rpg-1380fc452d56dd6f48ddbfa3a6b0e69edd043b04.tar.bz2
changes to the page subscription feature
darcs-hash:20050806212000-7ad00-c5ab54a33289f8be0ce99443f82f0b3cf1bdbf0d.gz
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index b04f6e596..1e0792b7d 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -4,6 +4,7 @@
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Andreas Gohr <andi@splitbrain.org>
+ * @todo Combine similar functions like {wiki,media,meta}FN()
*/
/**
@@ -131,17 +132,17 @@ function wikiFN($id,$rev=''){
}
/**
- * returns the full path to the mailist specified by ID
+ * returns the full path to the meta file specified by ID and extension
*
* The filename is URL encoded to protect Unicode chars
*
* @author Steven Danz <steven-danz@kc.rr.com>
*/
-function wikiMN($id){
+function metaFN($id,$ext){
global $conf;
$id = cleanID($id);
$id = str_replace(':','/',$id);
- $fn = $conf['metadir'].'/'.utf8_encodeFN($id).'.mlist';
+ $fn = $conf['metadir'].'/'.utf8_encodeFN($id).$ext;
return $fn;
}