Don't link to PHP @ php.net when running HHVM
authorChad Horohoe <chadh@wikimedia.org>
Fri, 4 Jul 2014 00:58:43 +0000 (17:58 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 4 Jul 2014 01:03:41 +0000 (18:03 -0700)
Change-Id: Ifdec12e093fdd29d76ccb4b9e3ec58a6bceb47ed

includes/specials/SpecialVersion.php

index c9e2e18..576b625 100644 (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.