1. 05 Nov, 2010 1 commit
  2. 01 Nov, 2010 1 commit
  3. 24 Aug, 2010 1 commit
  4. 20 Jul, 2010 1 commit
  5. 15 Jul, 2010 1 commit
  6. 04 Jul, 2010 1 commit
  7. 03 Jul, 2010 1 commit
  8. 20 May, 2010 1 commit
  9. 03 May, 2010 1 commit
  10. 26 Apr, 2010 1 commit
  11. 11 Apr, 2010 1 commit
  12. 01 Nov, 2009 1 commit
  13. 13 Jul, 2009 1 commit
    • tjhunt's avatar
      block contexts: MDL-19098 every block should have a context · e92c286c
      tjhunt authored
      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.
      e92c286c
  14. 06 May, 2009 1 commit
  15. 20 Nov, 2008 1 commit
  16. 03 Jun, 2008 1 commit
  17. 01 Apr, 2008 2 commits
  18. 24 Mar, 2008 1 commit
  19. 03 Mar, 2008 1 commit
  20. 29 Dec, 2007 1 commit
  21. 15 Nov, 2007 1 commit
    • tjhunt's avatar
      MDL-12066 - Links in the HTML block are not recoded on backup and restore. · 43457dc8
      tjhunt authored
      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.
      43457dc8
  22. 20 May, 2005 1 commit
    • defacer's avatar
      · e345909c
      defacer authored
      Now that the extended multilang filter is in place (bug 2879),
      reintroducing format_text to the HTML block (bug 2878).
      e345909c
  23. 18 May, 2005 1 commit
  24. 17 May, 2005 1 commit
    • defacer's avatar
      · 7c7d56bb
      defacer authored
      Fix for bug 2878:
      
      HTML block now calls format_string to run filters as required.
      7c7d56bb
  25. 03 Mar, 2005 2 commits
    • defacer's avatar
      · 48f7fa4a
      defacer authored
      Small improvement to HTML block; new html blocks have a default title instead of none.
      48f7fa4a
    • defacer's avatar
      · 3ef642d9
      defacer authored
      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
      3ef642d9
  26. 01 Feb, 2005 1 commit
    • defacer's avatar
      · b959599b
      defacer authored
      Allow this in quiz pages, too.
      b959599b
  27. 29 Jan, 2005 2 commits