39 Commits

Author SHA1 Message Date
Petr Skoda
d85ab7051c MDL-22950 fixed regression - files in subdirectories not found; big thanks to Dongsheng for spotting this 2010-07-07 07:53:03 +00:00
Petr Skoda
8571833f0b MDL-23069 moving version and cron info into standard version.php - finally, yay! 2010-07-04 12:18:22 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Dongsheng Cai
af140288c4 MDL-8224, minor changes to tweak ui 2010-05-20 06:26:40 +00:00
Martin Dougiamas
00ab45e7a3 MDL-19844 Fixed one little glitch on new blocks 2010-05-03 16:45:56 +00:00
Dongsheng Cai
41976db384 "MDL-19844, file storage conversion for html block" 2010-05-03 15:35:42 +00:00
Martin Dougiamas
16b5fdaf17 MDL-22054 Fixed some uppercasing errors. We Never Use This Format For Strings. 2010-04-30 02:42:18 +00:00
Martin Dougiamas
94ee9ae007 blocks/html MDL-19844 Very minimal fixes to make HTML work. Files still not working properly, see MDL-19844 2010-04-26 07:56:23 +00:00
Eloy Lafuente
691946222b MDL-21432 backup 2.0 - initial commit. blocks custom bits 2010-04-21 09:33:31 +00:00
Petr Skoda
8c5bba16cc MDL-22054 converting block name strings to pluginname
AMOS START
 MOV [html,block_html],[pluginname,block_html]
AMOS END
2010-04-11 11:20:58 +00:00
David Mudrak
30c8dd34f7 MDL-15252 Re-committing all English strings exported from AMOS
From now on, all English strings use the new syntax. They are not
eval()'ed any more and the only valid placeholders are {$a} and
{$a->foobar}. No extra quotes escaping, dollar sign escaping and putting
double percent signs.

The modified files were exported from AMOS database repository in the
new syntax and were re-ordered by stringid. Standard GNU/GPL and PHPdoc
blocks are added. Where there was no copyright note so far, I added the
default one with Martin Dougiamas as the copyright holder.

Live long and prosper.
2010-04-10 14:01:45 +00:00
Petr Skoda
3a915b0667 MDL-21693 Dropping _utf8 suffix from language codes and folder names; enabling new string managers - please note the transition is not yet fully complete because we need to wait for git to recognize the renames in cvs 2010-04-10 07:24:56 +00:00
David Mudrak
7a563f0f35 MDL-21694 Moving blocks lang files into the plugin scope 2010-03-29 15:33:27 +00:00
Petr Skoda
4ca6cfbfd4 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:00:47 +00:00
tjhunt
a60bdd8cfd blocks editing: MDL-19889 tidy up HTML form class. 2009-07-21 09:20:44 +00:00
tjhunt
1d13c75c15 blocks editing ui: MDL-19398 Can how precisely control block positioning using the edit icon
This mostly works now, but ...
* The UI needs further work. In particular we need a non-advanced mode.
* This only works for blocks that use a new edit_form.php to replace config_instance.html.
* .. and so far I have only implemented edit_form.php for the HTML block so far.
* Needs to be enabled (with no block-specific config) for blocks without instance config, so you can control their positioning.
2009-07-16 10:50:19 +00:00
tjhunt
e92c286c20 block contexts: MDL-19098 every block should have a context
even non-course and sticky blocks.

The parent context is block_instances.parentcontextid.

The block context should be used for checking permissions directly
related to the block, like moodle/block:view or moodle/site:manageblocks.

However, if the block is displaying information about the current page,
for example the participants block showing who 'here', then it may be
better to use the context of the page where the bloack is appearing -
in other words $this->page->context - to check permissions about the
user's ability to see participants here.

Or, if the block is displaying something stronly related to courses,
for example, a course meny block, the block should probably use the
context for $this->page->course to check permissions.
2009-07-13 08:37:34 +00:00
tjhunt
3179b0006a blocklib: MDL-19010 Fix blocks that were relying on ->instance in an unfortunate way 2009-05-06 09:15:33 +00:00
skodak
e8a7edd7d6 MDL-17236 html block: proper cleanup of html 2008-11-19 16:46:41 +00:00
scyrma
2a68c5d9b9 MDL-16318: remove a few calls use_html_editor() (more to come) 2008-09-03 03:09:56 +00:00
skodak
f28f2d9022 MDL-14679 towards blocks conversion 2008-06-02 20:15:51 +00:00
dongsheng
f36acb35fb MDL-14111, multilang htmlblock title, merged from MOODLE_19_STABLE 2008-04-01 05:57:00 +00:00
stronk7
83fc40040b Prevent cloning of non-object. Delegate to parent method as fallback. MDL-14120 ; merged from 19_STABLE 2008-03-31 22:52:17 +00:00
skodak
5cfefc9b02 MDL-8270 full block backup/restore - based on patches by Mark Nielsen and code in HEAD by Tim Hunt; merged from MOODLE_19_STABLE 2008-03-23 15:54:42 +00:00
moodler
433c242f1a Merged new block versions from 1.9 2008-03-03 11:43:32 +00:00
poltawski
2d035282fe remove debugging message, merged from MOODLE_19_STABLE 2007-12-29 12:07:08 +00:00
tjhunt
43457dc87c 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.

Merged from MOODLE_19_STABLE.
2007-11-14 17:03:32 +00:00
danmarsden
5ac207d98e fix for Bug #4733 title gets garbled when html inside title. 2006-07-23 22:05:18 +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
moodler
fa966efe7a FIxed some old <p> tags 2005-02-08 18:33:08 +00:00
defacer
17ed7f8290 Additional notices under PHP5 fixed. 2005-02-04 20:57:16 +00:00
defacer
b959599b51 Allow this in quiz pages, too. 2005-02-01 10:03:54 +00:00
moodler
80317ba569 Make the editing form bigger 2005-01-29 04:04:28 +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