36905 Commits

Author SHA1 Message Date
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
samhemelryk
4d49202ffc javascript-UFO MDL-19738 Stopped ufo.js being included in outputlib and included it in each place it was actually being used.
It will no only be loaded when it is being used. If something new comes along they will need to remember to require it.
At the same time cleaned up a few deprecated calls
2009-07-08 04:12:11 +00:00
samhemelryk
e6f7f2b278 lib MDL-19739 Moved call to include dropdown.js out of outputlib and into the same body of code in weblib
that uses it.
This ensures that it is only loaded if it is used, which is only is the browser is opera, or IE
2009-07-08 03:27:27 +00:00
samhemelryk
803dc07443 ajaxlib MDL-19690 Fixed minor bug because of missing global 2009-07-08 01:56:15 +00:00
samhemelryk
405efa5f95 filelib MDL-19707 Modified file_extension_icon to use extisting function mimeinfo and reverted
two uses of file_extension_icon in course-lib that were incorrect
2009-07-08 01:52:16 +00:00
moodlerobot
8abf70817a Updated the HEAD build version to 20090708 2009-07-08 00:36:49 +00:00
samhemelryk
e11a8328b3 javascript MDL-16673 Removed all removeable uses of CFG->javascript
In doing this I was able to eliminate the need for javascript.php files, now removed.
I will also be filing several subtasks to clean up the linked to JS files in OUTPUT as well
as all instance of the old style of focusing.
2009-07-07 09:09:16 +00:00
samhemelryk
e4e7044acd lib-form MDL-16706 Changed inline JS to use PAGE methods 2009-07-07 08:49:00 +00:00
moodler
f77fcb5a8f Fixing a notice for Tim 2009-07-07 07:43:36 +00:00
moodler
d917700d2d Upgraded this theme to use the new $THEME->pluginsheets 2009-07-07 07:35:59 +00:00
dongsheng
d34bdb4ba1 "MDL-16706, fixed javascript object used to assoicate editorid with file picker clientid" 2009-07-07 07:16:22 +00:00
moodler
024f3f9749 accesslib MDL-19730 fixing regression from MDL-19077 where has_capability fails when $USER->id=0 (so they couldn't see blocks etc) 2009-07-07 07:06:19 +00:00
samhemelryk
19c9f09430 filelib MDL-19707 Converted existing ...str_replace('png','gif')... to use file_extension_icon and file_mimetype_icon 2009-07-07 06:16:01 +00:00