Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a1728d
)
MDL-55083 admin: provide friendly error in case phpxml is missing
author
tunele
<antonello.moro1@gmail.com>
Fri, 1 Jul 2016 10:43:20 +0000
(12:43 +0200)
committer
tunele
<antonello.moro1@gmail.com>
Tue, 12 Jul 2016 21:35:15 +0000
(23:35 +0200)
admin/index.php
patch
|
blob
|
blame
|
history
diff --git
a/admin/index.php
b/admin/index.php
index
382c252
..
2cf9d1a
100644
(file)
--- a/
admin/index.php
+++ b/
admin/index.php
@@
-52,6
+52,12
@@
if (!function_exists('json_encode') || !function_exists('json_decode')) {
die();
}
+// Make sure xml extension is available.
+if (!extension_loaded('xml')) {
+ echo 'Moodle requires the xml PHP extension. Please install or enable the xml extension.';
+ die();
+}
+
define('NO_OUTPUT_BUFFERING', true);
if (isset($_POST['upgradekey'])) {