
|
[dokuwiki]
||
[Date Prev]
[03-2007 Date Index]
[Date Next]
||
[Thread Prev]
[03-2007 Thread Index]
[Thread Next]
[dokuwiki] Minor addition to inc/common.php to include @YEAR@ and @MONTH@ variables
- From: Adam Shand <adam@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 01 Mar 2007 23:55:47 -0600
I think this go trapped in the moderator interface so I've subscribed
and am trying again. Apologies if it is a repost.
Adam.
----
Hi,
I have added a couple of @@ variables to inc/common.php because they are
useful to me. I don't think there's any overhead from installing them
and they might be helpful to other people as well.
The reason I added them was because I'm using the Tag plugin and I
wanted to pre-populate my namespace template with some helpful tag
defaults. Eg.
{{tag>@YEAR@ @MONTH@ @NS@ @USER@}}
Might not be everone's cup of tea, but I thought it was a nice idea to
provide some useful starting points for tags.
Adam.
Here's the patch:
--- common.php 2007-02-15 18:11:43.000000000 -0800
+++ common.php.orig 2007-02-15 16:44:02.000000000 -0800
@@ -628,9 +628,6 @@
$tpl = str_replace('@NAME@',$INFO['userinfo']['name'],$tpl);
$tpl = str_replace('@MAIL@',$INFO['userinfo']['mail'],$tpl);
$tpl = str_replace('@DATE@',date($conf['dformat']),$tpl);
- $tpl = str_replace('@YEARMONTH@',date("Y-m"),$tpl);
- $tpl = str_replace('@YEAR@',date("Y"),$tpl);
- $tpl = str_replace('@MONTH@',date("F"),$tpl);
return $tpl;
}
--
"Jump, boiling frog. Jump hard and fast. Good luck." -- Viridian
Design Note #487
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
|

|