forked from coop-cloud/mediawiki
Add MobileFrontend support and fix issues spotted during PR review :D
coop-cloud/mediawiki#31
This commit is contained in:
parent
b78c20fe41
commit
e2ca6b6df4
|
@ -46,6 +46,12 @@ SECRET_MEDIAWIKI_SECRET_KEY_VERSION=v1 # length=64
|
||||||
# OPENID_CLIENT_ID="mediawiki"
|
# OPENID_CLIENT_ID="mediawiki"
|
||||||
# SECRET_OPENID_CLIENT_SECRET_VERSION=v1
|
# SECRET_OPENID_CLIENT_SECRET_VERSION=v1
|
||||||
|
|
||||||
|
## WikiMarkdown
|
||||||
|
#MARKDOWN_ENABLED=1
|
||||||
|
|
||||||
|
## MobileFrontend
|
||||||
|
#MOBILEFRONTEND_ENABLED=1
|
||||||
|
|
||||||
## MsUpload
|
## MsUpload
|
||||||
#MSU_ENABLED=1
|
#MSU_ENABLED=1
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ if ( !defined( 'MEDIAWIKI' ) ) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
## Uncomment this to disable output compression
|
## Uncomment this to disable output compression
|
||||||
# $wgDisableOutputCompression = true;
|
# $wgDisableOutputCompression = true;
|
||||||
|
|
||||||
|
@ -116,6 +115,13 @@ $wgGroupPermissions['*']['read'] = false;
|
||||||
$wgGroupPermissions['*']['read'] = true;
|
$wgGroupPermissions['*']['read'] = true;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
# Enabled skins.
|
||||||
|
# The following skins were automatically enabled:
|
||||||
|
wfLoadSkin( 'MonoBook' );
|
||||||
|
wfLoadSkin( 'Timeless' );
|
||||||
|
wfLoadSkin( 'Vector' );
|
||||||
|
wfLoadSkin( 'MinervaNeue' );
|
||||||
|
|
||||||
## Default skin: you can change the default skin. Use the internal symbolic
|
## Default skin: you can change the default skin. Use the internal symbolic
|
||||||
## names, ie 'vector', 'monobook':
|
## names, ie 'vector', 'monobook':
|
||||||
|
|
||||||
|
@ -126,12 +132,10 @@ $wgDefaultSkin = "tweeki";
|
||||||
$wgDefaultSkin = "vector";
|
$wgDefaultSkin = "vector";
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
# Enabled skins.
|
{{ if eq (env "MOBILEFRONTEND_ENABLED") "1" }}
|
||||||
# The following skins were automatically enabled:
|
wfLoadExtension( 'MobileFrontend' );
|
||||||
wfLoadSkin( 'MonoBook' );
|
$wgDefaultMobileSkin = 'minerva';
|
||||||
wfLoadSkin( 'Timeless' );
|
{{ end }}
|
||||||
wfLoadSkin( 'Vector' );
|
|
||||||
wfLoadSkin( 'MinervaNeue' );
|
|
||||||
|
|
||||||
# Enabled extensions. Most of the extensions are enabled by adding
|
# Enabled extensions. Most of the extensions are enabled by adding
|
||||||
# wfLoadExtensions('ExtensionName');
|
# wfLoadExtensions('ExtensionName');
|
||||||
|
|
6
abra.sh
6
abra.sh
|
@ -1,8 +1,8 @@
|
||||||
export LOCAL_SETTINGS_CONF_VERSION=v17
|
export LOCAL_SETTINGS_CONF_VERSION=v20
|
||||||
export HTACCESS_CONF_VERSION=v1
|
export HTACCESS_CONF_VERSION=v1
|
||||||
export ENTRYPOINT_CONF_VERSION=v15
|
export ENTRYPOINT_CONF_VERSION=v19
|
||||||
export COMPOSER_LOCAL_CONF_VERSION=v5
|
export COMPOSER_LOCAL_CONF_VERSION=v5
|
||||||
export PHP_INI_VERSION=v2
|
export PHP_INI_VERSION=v4
|
||||||
|
|
||||||
export SAML_ENTRYPOINT_CONF_VERSION=v3
|
export SAML_ENTRYPOINT_CONF_VERSION=v3
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ init_db() {
|
||||||
}
|
}
|
||||||
|
|
||||||
init_extensions() {
|
init_extensions() {
|
||||||
|
|
||||||
if [ ! -d /var/www/html/extensions/PluggableAuth ]; then
|
if [ ! -d /var/www/html/extensions/PluggableAuth ]; then
|
||||||
git clone --depth 1 -b REL1_39 \
|
git clone --depth 1 -b REL1_39 \
|
||||||
https://gerrit.wikimedia.org/r/p/mediawiki/extensions/PluggableAuth \
|
https://gerrit.wikimedia.org/r/p/mediawiki/extensions/PluggableAuth \
|
||||||
|
@ -75,6 +76,14 @@ init_extensions() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${MOBILEFRONTEND_ENABLED-}" ]; then
|
||||||
|
if [ ! -d /var/www/html/extensions/MobileFrontend ]; then
|
||||||
|
git clone --depth 1 -b REL1_39 \
|
||||||
|
https://github.com/wikimedia/mediawiki-extensions-MobileFrontend.git \
|
||||||
|
/var/www/html/extensions/MobileFrontend
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${MSU_ENABLED-}" ]; then
|
if [ -n "${MSU_ENABLED-}" ]; then
|
||||||
if [ ! -d /var/www/html/extensions/MsUpload ]; then
|
if [ ! -d /var/www/html/extensions/MsUpload ]; then
|
||||||
git clone --depth 1 -b REL1_39 \
|
git clone --depth 1 -b REL1_39 \
|
||||||
|
|
|
@ -5,4 +5,6 @@ max_file_uploads = 1000
|
||||||
|
|
||||||
{{ if eq (env "MEDIAWIKI_DEBUG") "0" }}
|
{{ if eq (env "MEDIAWIKI_DEBUG") "0" }}
|
||||||
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
|
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
|
||||||
|
{{ else }}
|
||||||
|
error_reporting = E_ALL
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue