Kaldari has uploaded a new change for review.
https://gerrit.wikimedia.org/r/176809
Change subject: Adding check for lessphp compiler to getLessCompiler()
......................................................................
Adding check for lessphp compiler to getLessCompiler()
Otherwise, PHP fatal errors will be thrown for anyone who installs
without it.
Change-Id: Ia027b7a829bbdae88b750c8119c546c846f3ae54
---
M includes/resourceloader/ResourceLoader.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/09/176809/1
diff --git a/includes/resourceloader/ResourceLoader.php
b/includes/resourceloader/ResourceLoader.php
index eecb936..2c54f69 100644
--- a/includes/resourceloader/ResourceLoader.php
+++ b/includes/resourceloader/ResourceLoader.php
@@ -1490,6 +1490,9 @@
// When called from the installer, it is possible that a
required PHP extension
// is missing (at least for now; see bug 47564). If this is the
case, throw an
// exception (caught by the installer) to prevent a fatal error
later on.
+ if ( !class_exists( 'lessc' ) ) {
+ throw new MWException( 'MediaWiki requires the lessphp
compiler' );
+ }
if ( !function_exists( 'ctype_digit' ) ) {
throw new MWException( 'lessc requires the Ctype
extension' );
}
--
To view, visit https://gerrit.wikimedia.org/r/176809
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia027b7a829bbdae88b750c8119c546c846f3ae54
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits