Article publié le : 7 mars 2015 21:12:41
Install MediaWiki/Modifications pour la 1.24.0 | |
---|---|
Nom | mediawiki |
Version | 1.24.0 |
<?php//supression anciens répertoires
system("rm -rf ../MediaWiki/bin ../MediaWiki/cache ../MediaWiki/docs ../MediaWiki/includes ../MediaWiki/langages");
system("rm -rf ../MediaWiki/maintenance ../MediaWiki/mw-config ../MediaWiki/resources ../MediaWiki/serialized ../MediaWiki/tests");
//dézipper
system("tar -C ../MediaWiki --strip-components 1 -zxf ../tmp/mediawiki-1.24.0.tar.gz ");?>
http://www.jltryoen.fr/MediaWiki/mw-config/
function connectToDB() {
wfDebug("AuthJoomla::connectToDB()\n");
if ($GLOBALS['wgAuthJoomla_UseExtDatabase']) {
// Joomla tables are in a separate DB from MW tables, create
// a separate DB connection
wfDebug("AuthJoomla::connectToDB() : new database\n");
$this->my_dbr = new DatabaseMysql(array('host' => $GLOBALS['wgAuthJoomla_MySQL_Host'],
'user' => $GLOBALS['wgAuthJoomla_MySQL_Username'],
'password' => $GLOBALS['wgAuthJoomla_MySQL_Password'],
'dbname' => $GLOBALS['wgAuthJoomla_MySQL_Database'],
'tablePrefix' => $this->db_prefix,
"flags" => 0,
"schema" => '',
"foreign" => ''
global $IP;
require_once("$IP/skins/Vector/VectorTemplate.php");
...
class MediaWikiBootstrapTemplate extends VectorTemplate {