Commit Graph

14 Commits

Author SHA1 Message Date
dongsheng 56fcf4b1b2 MDL-14111, multilang htmlblock title 2008-04-01 06:00:09 +00:00
stronk7 e76ddb2da6 Prevent cloning of non-object. Delegate to parent method as fallback. MDL-14120 2008-03-31 22:50:35 +00:00
skodak a18258a969 MDL-8270 full block backup/restore - based on patches by Mark Nielsen and code in HEAD by Tim Hunt 2008-03-23 15:50:08 +00:00
moodler 3dff726aa1 New block versions for 1.9 release 2008-03-03 11:41:01 +00:00
poltawski 3e6c7834ed Remove debugging message 2007-12-29 12:06:10 +00:00
tjhunt 582e15dfd2 MDL-12066 - Links in the HTML block are not recoded on backup and restore.
This is messy because the links are hidden in the configdata column, which is serialized and base64encoded. So we have to untangle that, then ask the block whether there are any bits of $config that need to be fixed, then re-encode it before backup up. And reverse that on restore. It needs to remain base64 encoded in the backup file, so that the file format is backwards compatible.

I disucssed this with Eloy before doing it.
2007-11-14 17:03:16 +00:00
defacer e345909c50 Now that the extended multilang filter is in place (bug 2879),
reintroducing format_text to the HTML block (bug 2878).
2005-05-19 20:09:57 +00:00
moodler 381576d219 Undoing PJs change - sorry. HTML tags were being completely filtered out.
Trying to come up with another solution to work with multilang
tags (Bug 2878) (SE).
2005-05-18 01:49:56 +00:00
defacer 7c7d56bbd9 Fix for bug 2878:
HTML block now calls format_string to run filters as required.
2005-05-17 15:01:10 +00:00
defacer 48f7fa4a60 Small improvement to HTML block; new html blocks have a default title instead of none. 2005-03-02 19:31:11 +00:00
defacer 3ef642d96a Implemented discussion from bug 2547:
* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
  instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience
2005-03-02 19:22:26 +00:00
defacer b959599b51 Allow this in quiz pages, too. 2005-02-01 10:03:54 +00:00
moodler 63689c58b1 Some fixes to avoid notices etc 2005-01-29 03:55:29 +00:00
moodler 86db09ef85 Added Jon's html block from contrib! Thanks, Jon! 2005-01-29 03:48:45 +00:00