From 529965b6fef52910bbe78887a321b5cdbe4a75ca Mon Sep 17 00:00:00 2001 From: carstenklapp Date: Tue, 15 Jan 2002 22:20:53 +0000 Subject: [PATCH] New constant WIKIMARK_AFTER controls whether the '?' appears before or after UnknownWikiWords. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@1252 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- index.php | 6 +++++- lib/stdlib.php | 19 +++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 37ee63946..ee3e4ae7b 100644 --- a/index.php +++ b/index.php @@ -68,7 +68,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA define ('PHPWIKI_VERSION', '1.3.2-jeffs-hacks'); require "lib/prepend.php"; -rcs_id('$Id: index.php,v 1.61 2002-01-13 04:46:43 dairiki Exp $'); +rcs_id('$Id: index.php,v 1.62 2002-01-15 22:20:53 carstenklapp Exp $'); ///////////////////////////////////////////////////////////////////// // @@ -378,6 +378,10 @@ define("NUM_RELATED_PAGES", 5); //define("RC_SEPARATOR_A", '. . . '); //define("RC_SEPARATOR_B", '. . . . . '); +// Controls whether the '?' appears before or after UnknownWikiWords. +// The PhpWiki default is for the '?' to appear before. +//define('WIKIMARK_AFTER', true); + // Template files (filenames are relative to script position) // However, if a LANG is set, they we be searched for in a locale // specific location first. diff --git a/lib/stdlib.php b/lib/stdlib.php index 82de04a6e..a355c70ca 100644 --- a/lib/stdlib.php +++ b/lib/stdlib.php @@ -1,4 +1,4 @@ - $class), - QElement('a', - array('href' => WikiURL($wikiword, - array('action' => 'edit'))), - '?') . Element('u', $linktext)); + $a = QElement('a', + array('href' => WikiURL($wikiword, + array('action' => 'edit'))), + '?'); + + if (defined('WIKIMARK_AFTER') && WIKIMARK_AFTER) { + return Element('span', array('class' => $class), + Element('u', $linktext) . $a); + } else { + return Element('span', array('class' => $class), + $a . Element('u', $linktext)); + } } function LinkImage($url, $alt = '[External Image]') { -- 2.45.0