Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -2361,6 +2361,10 @@ |
2362 | 2362 | 'version-hook-name', |
2363 | 2363 | 'version-hook-subscribedby', |
2364 | 2364 | 'version-version', |
| 2365 | + 'version-licence', |
| 2366 | + 'version-software', |
| 2367 | + 'version-software-product', |
| 2368 | + 'version-software-version', |
2365 | 2369 | ), |
2366 | 2370 | 'filepath' => array( |
2367 | 2371 | 'filepath', |
Index: trunk/phase3/skins/monobook/main.css |
— | — | @@ -1463,17 +1463,17 @@ |
1464 | 1464 | |
1465 | 1465 | /** Special:Version */ |
1466 | 1466 | |
1467 | | -table#sv-ext, table#sv-hooks { |
| 1467 | +table#sv-ext, table#sv-hooks, table#sv-software { |
1468 | 1468 | margin: 1em; |
1469 | 1469 | padding:0em; |
1470 | 1470 | } |
1471 | 1471 | |
1472 | | -#sv-ext td, #sv-hooks td, |
1473 | | -#sv-ext th, #sv-hooks th { |
| 1472 | +#sv-ext td, #sv-hooks td, #sv-software td, |
| 1473 | +#sv-ext th, #sv-hooks th, #sv-software th { |
1474 | 1474 | border: 1px solid #A0A0A0; |
1475 | 1475 | padding: 0 0.15em 0 0.15em; |
1476 | 1476 | } |
1477 | | -#sv-ext th, #sv-hooks th { |
| 1477 | +#sv-ext th, #sv-hooks th, #sv-software th { |
1478 | 1478 | background-color: #F0F0F0; |
1479 | 1479 | color: black; |
1480 | 1480 | padding: 0 0.15em 0 0.15em; |
Index: trunk/phase3/skins/modern/main.css |
— | — | @@ -939,17 +939,17 @@ |
940 | 940 | |
941 | 941 | /** Special:Version */ |
942 | 942 | |
943 | | -table#sv-ext, table#sv-hooks { |
| 943 | +table#sv-ext, table#sv-hooks, table#sv-software { |
944 | 944 | margin: 1em; |
945 | 945 | padding:0em; |
946 | 946 | } |
947 | 947 | |
948 | | -#sv-ext td, #sv-hooks td, |
949 | | -#sv-ext th, #sv-hooks th { |
| 948 | +#sv-ext td, #sv-hooks td, #sv-software td, |
| 949 | +#sv-ext th, #sv-hooks th, #sv-software th { |
950 | 950 | border: 1px solid #A0A0A0; |
951 | 951 | padding: 0 0.15em 0 0.15em; |
952 | 952 | } |
953 | | -#sv-ext th, #sv-hooks th { |
| 953 | +#sv-ext th, #sv-hooks th, #sv-software th { |
954 | 954 | background-color: #F0F0F0; |
955 | 955 | color: black; |
956 | 956 | padding: 0 0.15em 0 0.15em; |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1320,7 +1320,7 @@ |
1321 | 1321 | * to ensure that client-side caches don't keep obsolete copies of global |
1322 | 1322 | * styles. |
1323 | 1323 | */ |
1324 | | -$wgStyleVersion = '110'; |
| 1324 | +$wgStyleVersion = '111'; |
1325 | 1325 | |
1326 | 1326 | |
1327 | 1327 | # Server-side caching: |
Index: trunk/phase3/includes/SpecialVersion.php |
— | — | @@ -30,6 +30,7 @@ |
31 | 31 | $wgOut->addHTML( '<div dir="ltr">' ); |
32 | 32 | $wgOut->addWikiText( |
33 | 33 | $this->MediaWikiCredits() . |
| 34 | + $this->softwareInformation() . |
34 | 35 | $this->extensionCredits() . |
35 | 36 | $this->wgHooks() |
36 | 37 | ); |
— | — | @@ -42,15 +43,10 @@ |
43 | 44 | */ |
44 | 45 | |
45 | 46 | /** |
46 | | - * Return wiki text showing the licence information and third party |
47 | | - * software versions (apache, php, mysql). |
48 | | - * @static |
| 47 | + * @return wiki text showing the licence information |
49 | 48 | */ |
50 | | - function MediaWikiCredits() { |
51 | | - $version = self::getVersion(); |
52 | | - $dbr = wfGetDB( DB_SLAVE ); |
53 | | - |
54 | | - $ret = |
| 49 | + static function MediaWikiCredits() { |
| 50 | + $ret = Xml::element( 'h2', array( 'id' => 'mw-version-licence' ), wfMsg( 'version-licence' ) ) . |
55 | 51 | "__NOTOC__ |
56 | 52 | This wiki is powered by '''[http://www.mediawiki.org/ MediaWiki]''', |
57 | 53 | copyright (C) 2001-2008 Magnus Manske, Brion Vibber, Lee Daniel Crocker, |
— | — | @@ -69,16 +65,40 @@ |
70 | 66 | |
71 | 67 | You should have received [{{SERVER}}{{SCRIPTPATH}}/COPYING a copy of the GNU General Public License] |
72 | 68 | along with this program; if not, write to the Free Software |
73 | | - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
74 | | - or [http://www.gnu.org/copyleft/gpl.html read it online] |
| 69 | + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
| 70 | + or [http://www.gnu.org/copyleft/gpl.html read it online]. |
| 71 | + "; |
75 | 72 | |
76 | | - * [http://www.mediawiki.org/ MediaWiki]: $version |
77 | | - * [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ") |
78 | | - * " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion(); |
79 | | - |
80 | 73 | return str_replace( "\t\t", '', $ret ) . "\n"; |
81 | 74 | } |
82 | 75 | |
| 76 | + /** |
| 77 | + * @return wiki text showing the third party software versions (apache, php, mysql). |
| 78 | + */ |
| 79 | + static function softwareInformation() { |
| 80 | + $dbr = wfGetDB( DB_SLAVE ); |
| 81 | + |
| 82 | + return Xml::element( 'h2', array( 'id' => 'mw-version-software' ), wfMsg( 'version-software' ) ) . |
| 83 | + Xml::openElement( 'table', array( 'id' => 'sv-software' ) ) . |
| 84 | + "<tr> |
| 85 | + <th>" . wfMsg( 'version-software-product' ) . "</th> |
| 86 | + <th>" . wfMsg( 'version-software-version' ) . "</th> |
| 87 | + </tr>\n |
| 88 | + <tr> |
| 89 | + <td>[http://www.mediawiki.org/ MediaWiki]</td> |
| 90 | + <td>" . self::getVersion() . "</td> |
| 91 | + </tr>\n |
| 92 | + <tr> |
| 93 | + <td>[http://www.php.net/ PHP]</td> |
| 94 | + <td>" . phpversion() . " (" . php_sapi_name() . ")</td> |
| 95 | + </tr>\n |
| 96 | + <tr> |
| 97 | + <td>" . $dbr->getSoftwareLink() . "</td> |
| 98 | + <td>" . $dbr->getServerVersion() . "</td> |
| 99 | + </tr>\n" . |
| 100 | + Xml::closeElement( 'table' ); |
| 101 | + } |
| 102 | + |
83 | 103 | /** Return a string of the MediaWiki version with SVN revision if available */ |
84 | 104 | public static function getVersion() { |
85 | 105 | global $wgVersion, $IP; |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -3049,6 +3049,10 @@ |
3050 | 3050 | 'version-hook-name' => 'Hook name', |
3051 | 3051 | 'version-hook-subscribedby' => 'Subscribed by', |
3052 | 3052 | 'version-version' => 'Version', |
| 3053 | +'version-licence' => 'Licence', |
| 3054 | +'version-software' => 'Installed software', |
| 3055 | +'version-software-product' => 'Product', |
| 3056 | +'version-software-version' => 'Version', |
3053 | 3057 | |
3054 | 3058 | # Special:Filepath |
3055 | 3059 | 'filepath' => 'File path', |