Index: trunk/phase3/includes/SpecialVersion.php |
— | — | @@ -5,8 +5,8 @@ |
6 | 6 | * @package MediaWiki |
7 | 7 | * @subpackage SpecialPage |
8 | 8 | * |
9 | | - * @authors Ævar Arnfjörð Bjarmason <avarab@gmail.com>, Rob Church <robchur@gmail.com> |
10 | | - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Rob Church |
| 9 | + * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com> |
| 10 | + * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason |
11 | 11 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
12 | 12 | */ |
13 | 13 | |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | |
86 | 86 | * [http://www.mediawiki.org/ MediaWiki]: $wgVersion |
87 | 87 | * [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ") |
88 | | - * " . $this->getServerSoftware() . " |
| 88 | + " . $this->getServerSoftware() . " |
89 | 89 | * " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion() . " |
90 | 90 | </div>"; |
91 | 91 | |
— | — | @@ -93,8 +93,13 @@ |
94 | 94 | |
95 | 95 | function getServerSoftware() { |
96 | 96 | # Return tweaked version of $_SERVER['SERVER_SOFTWARE'] |
97 | | - $osver = explode( ' ', $_SERVER['SERVER_SOFTWARE'] ); |
98 | | - return( count( $osver ) > 1 ? $osver[0] . ' ' . $osver[1] : $osver[0] ); |
| 97 | + if( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { |
| 98 | + $osver = explode( ' ', $_SERVER['SERVER_SOFTWARE'] ); |
| 99 | + $ssoft = "* " . ( count( $osver ) > 1 ? " * " . $osver[0] . ' ' . $osver[1] : $osver[0] ); |
| 100 | + } else { |
| 101 | + $ssoft = ""; |
| 102 | + } |
| 103 | + return( $ssoft ); |
99 | 104 | } |
100 | 105 | |
101 | 106 | function extensionCredits() { |