Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8680
specialversion.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 12:06 AM
2014-11-22 00:06:27 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
specialversion.diff
View Options
--- wiki/mediawiki/phase3/includes/specials/SpecialVersion.php 2011-10-24 14:10:14.000000000 +0200
+++ /opt/lampp/htdocs/testwiki2/includes/specials/SpecialVersion.php 2011-11-19 17:00:01.000000000 +0100
@@ -127,7 +127,7 @@
// be loaded here, so feel free to use wfMsg*() in the 'name'. Raw HTML or wikimarkup
// can be used.
$software = array();
- $software['[http://www.mediawiki.org/ MediaWiki]'] = self::getVersionLinked();
+ $software['[//www.mediawiki.org/ MediaWiki]'] = self::getVersionLinked();
$software['[http://www.php.net/ PHP]'] = phpversion() . " (" . php_sapi_name() . ")";
$software[$dbr->getSoftwareLink()] = $dbr->getServerInfo();
@@ -391,7 +391,12 @@
# Make main link (or just the name if there is no URL).
if ( isset( $extension['url'] ) ) {
- $mainLink = "[{$extension['url']} $name]";
+ $url = $extension['url'];
+ # Remove protocol for URLs known to work both with http: and https:
+ if ( strpos( $url, 'http://www.mediawiki.org' ) === 0 ) {
+ $url = substr( $url, 5 );
+ }
+ $mainLink = "[$url $name]";
} else {
$mainLink = $name;
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8197
Default Alt Text
specialversion.diff (1 KB)
Attached To
Mode
T34440: Link to mediawiki.org in extension description should be protocol-relative
Attached
Detach File
Event Timeline
Log In to Comment