From b158d625b53833ef391800a991ad93d965d9425e Mon Sep 17 00:00:00 2001 From: Steven Danz Date: Mon, 27 Jun 2005 04:17:48 +0200 Subject: track_changes.patch Second go at including changes to allow users to sign up on mailing lists so they may receive emails each time the page they are interested in is updated. darcs-hash:20050627021748-3ed6d-5f6993f51ab649e3928a513b0fbe7c421d880325.gz --- inc/pageutils.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'inc/pageutils.php') diff --git a/inc/pageutils.php b/inc/pageutils.php index 8477792e0..b04f6e596 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -130,6 +130,21 @@ function wikiFN($id,$rev=''){ return $fn; } +/** + * returns the full path to the mailist specified by ID + * + * The filename is URL encoded to protect Unicode chars + * + * @author Steven Danz + */ +function wikiMN($id){ + global $conf; + $id = cleanID($id); + $id = str_replace(':','/',$id); + $fn = $conf['metadir'].'/'.utf8_encodeFN($id).'.mlist'; + return $fn; +} + /** * returns the full path to the mediafile specified by ID * -- cgit v1.2.3