$wgOut->addHTML( '<div dir="ltr">' );
$wgOut->addWikiText(
$this->MediaWikiCredits() .
+ $this->softwareInformation() .
$this->extensionCredits() .
$this->wgHooks()
);
*/
/**
- * Return wiki text showing the licence information and third party
- * software versions (apache, php, mysql).
- * @static
+ * @return wiki text showing the licence information
*/
- function MediaWikiCredits() {
- $version = self::getVersion();
- $dbr = wfGetDB( DB_SLAVE );
-
- $ret =
+ static function MediaWikiCredits() {
+ $ret = Xml::element( 'h2', array( 'id' => 'mw-version-licence' ), wfMsg( 'version-licence' ) ) .
"__NOTOC__
This wiki is powered by '''[http://www.mediawiki.org/ MediaWiki]''',
copyright (C) 2001-2008 Magnus Manske, Brion Vibber, Lee Daniel Crocker,
You should have received [{{SERVER}}{{SCRIPTPATH}}/COPYING a copy of the GNU General Public License]
along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- or [http://www.gnu.org/copyleft/gpl.html read it online]
-
- * [http://www.mediawiki.org/ MediaWiki]: $version
- * [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ")
- * " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion();
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ or [http://www.gnu.org/copyleft/gpl.html read it online].
+ ";
return str_replace( "\t\t", '', $ret ) . "\n";
}
+ /**
+ * @return wiki text showing the third party software versions (apache, php, mysql).
+ */
+ static function softwareInformation() {
+ $dbr = wfGetDB( DB_SLAVE );
+
+ return Xml::element( 'h2', array( 'id' => 'mw-version-software' ), wfMsg( 'version-software' ) ) .
+ Xml::openElement( 'table', array( 'id' => 'sv-software' ) ) .
+ "<tr>
+ <th>" . wfMsg( 'version-software-product' ) . "</th>
+ <th>" . wfMsg( 'version-software-version' ) . "</th>
+ </tr>\n
+ <tr>
+ <td>[http://www.mediawiki.org/ MediaWiki]</td>
+ <td>" . self::getVersion() . "</td>
+ </tr>\n
+ <tr>
+ <td>[http://www.php.net/ PHP]</td>
+ <td>" . phpversion() . " (" . php_sapi_name() . ")</td>
+ </tr>\n
+ <tr>
+ <td>" . $dbr->getSoftwareLink() . "</td>
+ <td>" . $dbr->getServerVersion() . "</td>
+ </tr>\n" .
+ Xml::closeElement( 'table' );
+ }
+
/** Return a string of the MediaWiki version with SVN revision if available */
public static function getVersion() {
global $wgVersion, $IP;
'version-hook-name' => 'Hook name',
'version-hook-subscribedby' => 'Subscribed by',
'version-version' => 'Version',
+'version-licence' => 'Licence',
+'version-software' => 'Installed software',
+'version-software-product' => 'Product',
+'version-software-version' => 'Version',
# Special:Filepath
'filepath' => 'File path',
/** Special:Version */
-table#sv-ext, table#sv-hooks {
+table#sv-ext, table#sv-hooks, table#sv-software {
margin: 1em;
padding:0em;
}
-#sv-ext td, #sv-hooks td,
-#sv-ext th, #sv-hooks th {
+#sv-ext td, #sv-hooks td, #sv-software td,
+#sv-ext th, #sv-hooks th, #sv-software th {
border: 1px solid #A0A0A0;
padding: 0 0.15em 0 0.15em;
}
-#sv-ext th, #sv-hooks th {
+#sv-ext th, #sv-hooks th, #sv-software th {
background-color: #F0F0F0;
color: black;
padding: 0 0.15em 0 0.15em;
/** Special:Version */
-table#sv-ext, table#sv-hooks {
+table#sv-ext, table#sv-hooks, table#sv-software {
margin: 1em;
padding:0em;
}
-#sv-ext td, #sv-hooks td,
-#sv-ext th, #sv-hooks th {
+#sv-ext td, #sv-hooks td, #sv-software td,
+#sv-ext th, #sv-hooks th, #sv-software th {
border: 1px solid #A0A0A0;
padding: 0 0.15em 0 0.15em;
}
-#sv-ext th, #sv-hooks th {
+#sv-ext th, #sv-hooks th, #sv-software th {
background-color: #F0F0F0;
color: black;
padding: 0 0.15em 0 0.15em;