dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Separate content parts of mw-usertoollinks from presentation"
[lhc/web/wiklou.git]
/
includes
/
registration
/
ExtensionDependencyError.php
diff --git
a/includes/registration/ExtensionDependencyError.php
b/includes/registration/ExtensionDependencyError.php
index
d380d07
..
c27cd2c
100644
(file)
--- a/
includes/registration/ExtensionDependencyError.php
+++ b/
includes/registration/ExtensionDependencyError.php
@@
-48,6
+48,16
@@
class ExtensionDependencyError extends Exception {
*/
public $incompatibleCore = false;
*/
public $incompatibleCore = false;
+ /**
+ * @var bool
+ */
+ public $incompatiblePhp = false;
+
+ /**
+ * @var string[]
+ */
+ public $missingPhpExtensions = [];
+
/**
* @param array $errors Each error has a 'msg' and 'type' key at minimum
*/
/**
* @param array $errors Each error has a 'msg' and 'type' key at minimum
*/
@@
-59,6
+69,12
@@
class ExtensionDependencyError extends Exception {
case 'incompatible-core':
$this->incompatibleCore = true;
break;
case 'incompatible-core':
$this->incompatibleCore = true;
break;
+ case 'incompatible-php':
+ $this->incompatiblePhp = true;
+ break;
+ case 'missing-phpExtension':
+ $this->missingPhpExtensions[] = $info['missing'];
+ break;
case 'missing-skins':
$this->missingSkins[] = $info['missing'];
break;
case 'missing-skins':
$this->missingSkins[] = $info['missing'];
break;