Comment 3 for bug 1425728

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/4328
Committed: http://gitorious.org/mahara/mahara/commit/2b259a85cc9fb752a03bd6f6345ae4c32043e267
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 2b259a85cc9fb752a03bd6f6345ae4c32043e267
Author: Son Nguyen <email address hidden>
Date: Thu Feb 26 14:45:38 2015 +1300

Fix embedded images in 'Text' block when copy and import. Bug 1425728

- Add new method PluginBlocktype::rewrite_blockinstance_extra_config()
which enables blocktype to rewrite extra configuration when copying
block

- Implement rewrite_blockinstance_extra_config() for
PluginBlocktypeText to rewrite embedded image urls in the text block

- Rename the method rewrite_artefact_ids() to
rewrite_blockinstance_config() and add new code to allow blocktype
plugins rewrite extra config when import

- Add new method
PluginBlocktype::import_rewrite_blockinstance_extra_config_leap()

- Implement
PluginBlocktypeText::import_rewrite_blockinstance_extra_config_leap() to
rewrite embedded image urls in configdata['text']

Change-Id: Id5163817c676fb118edea02d152b7797111cb99f