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:
b7ed027
)
Do proper conversion table detection.
author
Liangent
<liangent@gmail.com>
Sun, 10 Jun 2012 16:12:56 +0000
(
00:12
+0800)
committer
Liangent
<liangent@gmail.com>
Sun, 10 Jun 2012 16:21:13 +0000
(
00:21
+0800)
MediaWiki:NotConversiontable/zh-cn and
MediaWiki:Conversiontable2/zh-cn are not conversion tables.
Change-Id: Id132330e20e1a33985aa336b1c26268b036f2dad
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
481f480
..
046fadb
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-936,7
+936,7
@@
class Title {
*/
public function isConversionTable() {
return $this->getNamespace() == NS_MEDIAWIKI &&
- strpos( $this->getText(), 'Conversiontable
' ) !== false
;
+ strpos( $this->getText(), 'Conversiontable
/' ) === 0
;
}
/**