dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a2b29c7
)
Move check for wgUseGeoMode to where the function is called, avoids copying the text...
author
Jens Frank
<jeluf@users.mediawiki.org>
Sun, 15 Aug 2004 13:49:14 +0000
(13:49 +0000)
committer
Jens Frank
<jeluf@users.mediawiki.org>
Sun, 15 Aug 2004 13:49:14 +0000
(13:49 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
49cda15
..
8fd7ae0
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-888,8
+888,11
@@
class Parser
}
/* private */ function &doMagicLinks( &$text ) {
}
/* private */ function &doMagicLinks( &$text ) {
+ global $wgUseGeoMode;
$text = $this->magicISBN( $text );
$text = $this->magicISBN( $text );
- $text = $this->magicGEO( $text );
+ if ( isset( $wgUseGeoMode ) && $wgUseGeoMode ) {
+ $text = $this->magicGEO( $text );
+ }
$text = $this->magicRFC( $text );
return $text;
}
$text = $this->magicRFC( $text );
return $text;
}
@@
-2360,7
+2363,6
@@
class Parser
# Return an HTML link for the "GEO ..." text
/* private */ function magicGEO( $text ) {
global $wgLang, $wgUseGeoMode;
# Return an HTML link for the "GEO ..." text
/* private */ function magicGEO( $text ) {
global $wgLang, $wgUseGeoMode;
- if ( !isset ( $wgUseGeoMode ) || !$wgUseGeoMode ) return $text ;
$fname = 'Parser::magicGEO';
wfProfileIn( $fname );
$fname = 'Parser::magicGEO';
wfProfileIn( $fname );