Mises à jour
|
cd /usr/share/webapps/mediawiki/extensions/MobileFrontend
git pull origin master
|
Erreurs
Class 'HtmlFormatter\HtmlFormatter' not found
PHP Fatal error: Class 'HtmlFormatter\HtmlFormatter' not found in
/usr/share/webapps/mediawiki/extensions/MobileFrontend/includes/MobileFormatter.php on line 11
extensions/MobileFrontend/includes/MobileFormatter.php
|
// Commenter la ligne 6
//use HtmlFormatter\HtmlFormatter;
|
wgMFDefaultSkinClass is not setup correctly
Ne pas oublier de charger le skin.
LocalSettings.php
|
// charger le skin Vector
wfLoadSkin( 'Vector' );
// forcer l'utilisation du skin Vector
$wgMFDefaultSkinClass = "SkinVector";
|
|
cd /usr/share/webapps/mediawiki/extensions
git clone https://github.com/wikimedia/mediawiki-extensions-MobileFrontend MobileFrontend
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/MobileFrontend.git
# skin minerva
wget https://extdist.wmflabs.org/dist/skins/MinervaNeue-REL1_31-2e70e79.tar.gz
tar -xzf MinervaNeue-REL1_31-2e70e79.tar.gz -C /usr/share/webapps/mediawiki/skins
|
LocalSettings.php
|
wfLoadExtension( 'MobileFrontend' );
$wgMFAutodetectMobileView = true;
// if this option is set to true file cache must be disabled
// by setting $wgUseFileCache to false (otherwise autodetection won't be reliable due to cached copies being shown).
$wgUseFileCache = false;
# le style par défaut est Minerva
wfLoadSkin( 'MinervaNeue' );
$wgDefaultSkin = 'minerva'; # ligne inutile car skin par défaut
# forcer certaines pages à l'affichage bureau
$wgMFNoMobilePages = array( 'Accueil' );
|