36917 Commits

Author SHA1 Message Date
skodak
7f0fedc0b5 MDL-14589 fixed incorrect condition testing if files allowed when postprocessing editor element data, thanks Nicolas for reporting this 2009-07-14 08:25:51 +00:00
tjhunt
21d33bdf62 blocks editing ui: MDL-19398 you can now add new blocks! 2009-07-14 07:18:57 +00:00
tjhunt
f674ec8640 blocks: MDL-19010 show empty blocks if they have controls. 2009-07-14 07:06:06 +00:00
skodak
ea87845660 MDL-16089 new general page type needed for framed resources, this is not accessible but unfortunately it works much better than object embedding; it will be also used by phpmyadmin integration 2009-07-14 06:33:34 +00:00
tjhunt
144390b4d9 themes: MDL-19077 Don't need both output_starting_hook and starting_output method on page. 2009-07-14 05:14:45 +00:00
tjhunt
485e46611a Fix block manager unit tests. 2009-07-14 04:18:58 +00:00
moodlerobot
4a050178ec Updated the HEAD build version to 20090714 2009-07-14 00:38:40 +00:00
skodak
75904dfa13 MDL-19755 fixed regression - no class test must be done before adding allign classes ;-) 2009-07-13 20:33:56 +00:00
mudrd8mz
480b0720ae MDL-19755 print_table replaced with $OUTPUT->table
rowclass property has been deprecated, rowclasses should be used.
Direct assigning of the class has been deprecated,
moodle_html_elements::set_classes() should be used instead. In both
cases, debugging message is displayed.
2009-07-13 11:10:30 +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
dc203659af themes: MDL-19077 Don't us $OUTPUT in debugging. 2009-07-13 06:16:48 +00:00
tjhunt
60a5b18833 themes: MDL-19077 fix bugs in cli_renderer. Use correct doctype with legacy header.html. 2009-07-13 06:10:03 +00:00
tjhunt
43b152f69a cron: MDL-19774 temporary hack so cron does not crash. 2009-07-13 06:08:48 +00:00
tjhunt
652ee8aa56 feedback MDL-19773 - temporary work-around so cron can run.
This still needs to be fixed properly.
2009-07-13 05:44:35 +00:00
tjhunt
aa2e96e9ce developer tools MDL-19772: Script to list all todos in code
And make sure they link to an open tracker issue as per
http://docs.moodle.org/en/Development:Coding_style#TODO_comments_must_link_to_a_tracker_issue
2009-07-13 04:27:05 +00:00
tjhunt
4625ab9a8c themes: MDL-19077 $OUTPUT->header does the main skip destination, layout.php should now. 2009-07-13 04:24:29 +00:00
tjhunt
8b40e0feb8 anomaly theme: XHTML strict. 2009-07-13 04:23:39 +00:00
tjhunt
320c5e7b5a themes: MDL-19077 - Incorrect initialisation order for user/editadvanced.php 2009-07-13 04:21:15 +00:00
moodlerobot
4559c153c4 Updated the HEAD build version to 20090713 2009-07-13 00:38:07 +00:00
moodlerobot
f2c1f91e06 Automatic installer.php lang files by installer_builder (20090713) 2009-07-13 00:27:41 +00:00
moodlerobot
111c7069ad Updated the HEAD build version to 20090712 2009-07-12 00:37:38 +00:00
moodlerobot
b04c401db7 Updated the HEAD build version to 20090711 2009-07-11 00:37:27 +00:00
tjhunt
5e39d7aa09 upgrade: MDL-19763 Improve the redirect that forces a DB upgrade when there are major changes
Also fix redirect, so 303 redirects don't need to fully initialise $OUTPUT.
2009-07-10 08:44:01 +00:00
samhemelryk
8dff48bf45 weblib MDL-19750 Fixed regression caused by implementing new PAGE methods 2009-07-10 08:08:17 +00:00
skodak
36c8dc6e16 MDL-19010 fixed redirect at login page if upgrade required, otherwise it would end with exception due to DB structure changes 2009-07-10 08:08:00 +00:00
skodak
80b3328712 MDL-19010 fixed redirect at main page if upgrade required, otherwise it would end with exception due to DB structure changes 2009-07-10 08:03:06 +00:00
jerome
728f96c756 output MDL-19077 typo bug on $debugdisableredirect 2009-07-10 07:08:12 +00:00
tjhunt
13a0d3d3c9 blocks MDL-19536: rename block_instances.contextid to parentcontextid to avoid gross confusion 2009-07-10 05:58:59 +00:00
tjhunt
99a70a7c08 Clarify comment. 2009-07-10 05:42:54 +00:00
tjhunt
45c6de041b Remove unnecessary 'none' passed to footer. 2009-07-10 05:37:36 +00:00
tjhunt
b9928286e7 Fix comment. 2009-07-10 03:39:09 +00:00
tjhunt
f6b2709ff4 setup: Need memory before setup_DB.
!This is the correct version of the previous commit!

I was getting an interesting failure with $CFG->prefix commented
out in config.php (by mistake!). Abbreviated stack trace
lib/setup.php -> setup_DB -> dml_exception('prefixcannotbeempty') ->
  get_string -> string_manager->__construct -> get_plugin_types

That loads lib.php from every module, which runs out of memeory.
2009-07-10 03:31:30 +00:00
tjhunt
6c77145468 setup: Need memory before setup_DB.
I was getting an interesting failure with $CFG->prefix commented
out in config.php (by mistake!). Abbreviated stack trace
lib/setup.php -> setup_DB -> dml_exception('prefixcannotbeempty') ->
  get_string -> string_manager->__construct -> get_plugin_types

That loads lib.php from every module, which runs out of memeory.
2009-07-10 03:30:43 +00:00
moodlerobot
7d935c01a5 Updated the HEAD build version to 20090710 2009-07-10 00:37:20 +00:00
skodak
462caf41b2 MDL-16630 do not show admin tree until the site is fully configured 2009-07-09 20:17:41 +00:00
skodak
092bfaf10f removed php closing tag 2009-07-09 20:07:51 +00:00
skodak
42f9706865 fixed obsolete readme info 2009-07-09 20:02:27 +00:00
skodak
edcb15b5c6 fixed whitespace and added TODO for release 2009-07-09 19:58:29 +00:00
skodak
8b6a09680a fixed whitespace 2009-07-09 19:54:54 +00:00
skodak
a820c2c26e MDL-16706 fix of fix that was supposed to fix previous regression 2009-07-09 19:14:31 +00:00
skodak
8c143dfe8a MDL-16706 fix of previous fix - multiple editors in one form shoudl work again 2009-07-09 16:33:58 +00:00
tjhunt
6b1d460c4d themes & blocks - MDL-19077 & MDL-19010 missing lang file changes. 2009-07-09 09:09:37 +00:00
tjhunt
fc2593fef9 blocks - MDL-19010 fix bug where blocks did not show up with editing off. 2009-07-09 08:17:23 +00:00
tjhunt
d4a03c00ea themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.
2009-07-09 07:35:03 +00:00
dongsheng
abdcded6c7 "MDL-13766, use OUTPUT to print box" 2009-07-09 07:17:18 +00:00
tjhunt
793a204e7b themes MDL-19077: Update deprecated stuff in all theme config.php files. 2009-07-09 02:06:22 +00:00
moodlerobot
4f876e658c Updated the HEAD build version to 20090709 2009-07-09 01:44:46 +00:00
mudrd8mz
897b5c820b MDL-19731 get_renderer() accepts optional subtype
The initial patch has been reviewed at the issue page. This commit also
fixes template_renderer_factory::get_renderer() and sets up folders for
subtypes there.
2009-07-08 09:37:06 +00:00
samhemelryk
428acddb72 outputlib MDL-19740 Fixed up outputlib focus handling to deal with the three different ways of requesting focus. 2009-07-08 09:01:20 +00:00
dongsheng
b2f8adf4e5 "MDL-19733, directory name need to be cleaned before saving into database" 2009-07-08 07:45:51 +00:00