Commit 5da23313 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Bug 1591759: Fixing importation of empty text box"

parents 0ae23b99 dbccc20a
......@@ -125,9 +125,13 @@ class PluginBlocktypeText extends MaharaCoreBlocktype {
*/
public static function import_rewrite_blockinstance_extra_config_leap(array $artefactids, array $configdata) {
// Rewrite embedded image urls in the configdata['text']
require_once('embeddedimage.php');
$configdata['text'] = EmbeddedImage::rewrite_embedded_image_urls_from_import($configdata['text'], $artefactids);
if (!empty($configdata['text'])) {
require_once('embeddedimage.php');
$configdata['text'] = EmbeddedImage::rewrite_embedded_image_urls_from_import($configdata['text'], $artefactids);
}
else {
$configdata['text'] = '';
}
return $configdata;
}
......
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