r79704 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r79703
|
r79704
|
r79705
>
Date:
02:30, 6 January 2011
Author:
reedy
Status:
ok
Tags:
Comment:
Fix fixme on
r71071
, if passed type is not in the array returned by getExtensionTypes(), return the other message by default
Modified paths:
/trunk/phase3/includes/specials/SpecialVersion.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/specials/SpecialVersion.php
—
—
@@ -246,7 +246,7 @@
247
247
*/
248
248
public static function getExtensionTypeName( $type ) {
249
249
$types = self::getExtensionTypes();
250
- return $types[$type];
250
+ return isset( $types[$type] ) ? $types[$type] : $types['other'];
251
251
}
252
252
253
253
/**
Follow-up revisions
Revision
Commit summary
Author
Date
r79720
1.17: MFT
r79578
,
r79591
,
r79593
,
r79595
,
r79649
,
r79650
,
r79651
,
r79653
,
r79...
catrope
14:48, 6 January 2011
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r71071
Added function to get extension type messages
jeroendedauw
14:04, 14 August 2010
Status & tagging log
14:49, 6 January 2011
Catrope
(
talk
|
contribs
)
changed the
tags
for r79704
[
removed:
1.17]
13:50, 6 January 2011
Catrope
(
talk
|
contribs
)
changed the
status
of r79704
[
removed:
new
added:
ok]
02:30, 6 January 2011
Reedy
(
talk
|
contribs
)
changed the
tags
for r79704
[
added:
1.17]