Commit fee0b18b authored by Nigel McNie's avatar Nigel McNie
Browse files

When exporting, even export from disabled artefact plugins.

This makes sense, as people may have data in them and they will still want to get at that data even if their administrator disables the plugin.
(cherry picked from commit 61a608972d8a86daec2919a439533af826114021)
parent 95ae5c09
......@@ -73,7 +73,7 @@ class PluginExportHtml extends PluginExport {
// For each artefact plugin, if it implements leap export, ask it to
// dump out its structure
$summaries = array();
foreach (plugins_installed('artefact') as $plugin) {
foreach (plugins_installed('artefact', true) as $plugin) {
$plugin = $plugin->name;
if (safe_require('export', 'html/' . $plugin, 'lib.php', 'require_once', true)) {
$classname = 'HtmlExport' . ucfirst($plugin);
......
......@@ -93,7 +93,7 @@ class PluginExportLeap extends PluginExport {
$this->zipfile = 'mahara-export-leap-user'
. $this->get('user')->get('id') . '-' . $this->export_time . '.zip';
// some plugins might want to do their own special thing
foreach (plugins_installed('artefact') as $plugin) {
foreach (plugins_installed('artefact', true) as $plugin) {
$plugin = $plugin->name;
if (safe_require('export', 'leap/' . $plugin, 'lib.php', 'require_once', true)) {
$classname = 'LeapExport' . ucfirst($plugin);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment