Commit eb00746b authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Fix fatal error in gallery on public profiles (bug #872672)"

parents f327a58b 8c320e23
...@@ -345,6 +345,7 @@ class PluginBlocktypeGallery extends PluginBlocktype { ...@@ -345,6 +345,7 @@ class PluginBlocktypeGallery extends PluginBlocktype {
} }
} }
else { else {
safe_require('artefact', 'file');
$artefactids = array(); $artefactids = array();
if (isset($configdata['select']) && $configdata['select'] == 1 && is_array($configdata['artefactids'])) { if (isset($configdata['select']) && $configdata['select'] == 1 && is_array($configdata['artefactids'])) {
$artefactids = $configdata['artefactids']; $artefactids = $configdata['artefactids'];
......
Supports Markdown
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