Don't link to PHP @ php.net when running HHVM

Change-Id: Ifdec12e093fdd29d76ccb4b9e3ec58a6bceb47ed
This commit is contained in:
Chad Horohoe 2014-07-03 17:58:43 -07:00
parent e585a2218c
commit d09ab9001f

View file

@ -211,7 +211,9 @@ class SpecialVersion extends SpecialPage {
// wikimarkup can be used.
$software = array();
$software['[https://www.mediawiki.org/ MediaWiki]'] = self::getVersionLinked();
$software['[http://www.php.net/ PHP]'] = phpversion() . " (" . PHP_SAPI . ")";
$phpKey = wfIsHHVM() ? '[http://hhvm.com/ HHVM]' :
'[http://www.php.net/ PHP]';
$software[$phpKey] = PHP_VERSION . " (" . PHP_SAPI . ")";
$software[$dbr->getSoftwareLink()] = $dbr->getServerInfo();
// Allow a hook to add/remove items.