[dokuwiki] changing double quote marks
- From: Werner Flamme <werner.flamme@xxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sat, 29 Apr 2006 18:48:08 +0200
Since I do not like the double quote marks as the are produced by
DokuWiki, I made the following changes to inc/parser/xhtml.php:
function doublequoteopening() {
global $conf;
if (strlen($conf['doublequote']['open']) >= 1)
$this->doc .= $conf['doublequote']['open'];
else
$this->doc .= "“";
}
function doublequoteclosing() {
global $conf;
if (strlen($conf['doublequote']['close']) >= 1)
$this->doc .= $conf['doublequote']['close'];
else
$this->doc .= "”";
}
BTW: why strlen(...) insted of isset(...)? I found that isset() is true
when an empty string is given, and I want wo be sure that there is
something to output.
Now I can put my own characters into conf/local.php.
Is there any other way to configure my own double quote marks? I thought
this will fit better into conf/entities.conf... Or: when I define
another variable in conf/local.php (e. g. mymarks[]), will this become a
global variable like $conf?
Regards,
Werner
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts:
- » [dokuwiki] changing double quote marks