tjhunt [Mon, 13 Jul 2009 06:08:48 +0000 (06:08 +0000)]
cron: MDL-19774 temporary hack so cron does not crash.
tjhunt [Mon, 13 Jul 2009 05:44:35 +0000 (05:44 +0000)]
feedback MDL-19773 - temporary work-around so cron can run.
This still needs to be fixed properly.
tjhunt [Mon, 13 Jul 2009 04:27:05 +0000 (04:27 +0000)]
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
tjhunt [Mon, 13 Jul 2009 04:24:29 +0000 (04:24 +0000)]
themes: MDL-19077 $OUTPUT->header does the main skip destination, layout.php should now.
tjhunt [Mon, 13 Jul 2009 04:23:39 +0000 (04:23 +0000)]
anomaly theme: XHTML strict.
tjhunt [Mon, 13 Jul 2009 04:21:15 +0000 (04:21 +0000)]
themes: MDL-19077 - Incorrect initialisation order for user/editadvanced.php
moodlerobot [Mon, 13 Jul 2009 00:38:07 +0000 (00:38 +0000)]
Updated the HEAD build version to
20090713
moodlerobot [Mon, 13 Jul 2009 00:27:41 +0000 (00:27 +0000)]
Automatic installer.php lang files by installer_builder (
20090713)
moodlerobot [Sun, 12 Jul 2009 00:37:38 +0000 (00:37 +0000)]
Updated the HEAD build version to
20090712
moodlerobot [Sat, 11 Jul 2009 00:37:27 +0000 (00:37 +0000)]
Updated the HEAD build version to
20090711
tjhunt [Fri, 10 Jul 2009 08:44:01 +0000 (08:44 +0000)]
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.
samhemelryk [Fri, 10 Jul 2009 08:08:17 +0000 (08:08 +0000)]
weblib MDL-19750 Fixed regression caused by implementing new PAGE methods
skodak [Fri, 10 Jul 2009 08:08:00 +0000 (08:08 +0000)]
MDL-19010 fixed redirect at login page if upgrade required, otherwise it would end with exception due to DB structure changes
skodak [Fri, 10 Jul 2009 08:03:06 +0000 (08:03 +0000)]
MDL-19010 fixed redirect at main page if upgrade required, otherwise it would end with exception due to DB structure changes
jerome [Fri, 10 Jul 2009 07:08:12 +0000 (07:08 +0000)]
output MDL-19077 typo bug on $debugdisableredirect
tjhunt [Fri, 10 Jul 2009 05:58:59 +0000 (05:58 +0000)]
blocks MDL-19536: rename block_instances.contextid to parentcontextid to avoid gross confusion
tjhunt [Fri, 10 Jul 2009 05:42:54 +0000 (05:42 +0000)]
Clarify comment.
tjhunt [Fri, 10 Jul 2009 05:37:36 +0000 (05:37 +0000)]
Remove unnecessary 'none' passed to footer.
tjhunt [Fri, 10 Jul 2009 03:39:09 +0000 (03:39 +0000)]
Fix comment.
tjhunt [Fri, 10 Jul 2009 03:31:30 +0000 (03:31 +0000)]
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.
tjhunt [Fri, 10 Jul 2009 03:30:43 +0000 (03:30 +0000)]
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.
moodlerobot [Fri, 10 Jul 2009 00:37:20 +0000 (00:37 +0000)]
Updated the HEAD build version to
20090710
skodak [Thu, 9 Jul 2009 20:17:41 +0000 (20:17 +0000)]
MDL-16630 do not show admin tree until the site is fully configured
skodak [Thu, 9 Jul 2009 20:07:51 +0000 (20:07 +0000)]
removed php closing tag
skodak [Thu, 9 Jul 2009 20:02:27 +0000 (20:02 +0000)]
fixed obsolete readme info
skodak [Thu, 9 Jul 2009 19:58:29 +0000 (19:58 +0000)]
fixed whitespace and added TODO for release
skodak [Thu, 9 Jul 2009 19:54:54 +0000 (19:54 +0000)]
fixed whitespace
skodak [Thu, 9 Jul 2009 19:14:31 +0000 (19:14 +0000)]
MDL-16706 fix of fix that was supposed to fix previous regression
skodak [Thu, 9 Jul 2009 16:33:58 +0000 (16:33 +0000)]
MDL-16706 fix of previous fix - multiple editors in one form shoudl work again
tjhunt [Thu, 9 Jul 2009 09:09:37 +0000 (09:09 +0000)]
themes & blocks - MDL-19077 & MDL-19010 missing lang file changes.
tjhunt [Thu, 9 Jul 2009 08:17:23 +0000 (08:17 +0000)]
blocks - MDL-19010 fix bug where blocks did not show up with editing off.
tjhunt [Thu, 9 Jul 2009 07:35:03 +0000 (07:35 +0000)]
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.
dongsheng [Thu, 9 Jul 2009 07:17:18 +0000 (07:17 +0000)]
"MDL-13766, use OUTPUT to print box"
tjhunt [Thu, 9 Jul 2009 02:06:22 +0000 (02:06 +0000)]
themes MDL-19077: Update deprecated stuff in all theme config.php files.
moodlerobot [Thu, 9 Jul 2009 01:44:46 +0000 (01:44 +0000)]
Updated the HEAD build version to
20090709
mudrd8mz [Wed, 8 Jul 2009 09:37:06 +0000 (09:37 +0000)]
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.
samhemelryk [Wed, 8 Jul 2009 09:01:20 +0000 (09:01 +0000)]
outputlib MDL-19740 Fixed up outputlib focus handling to deal with the three different ways of requesting focus.
dongsheng [Wed, 8 Jul 2009 07:45:51 +0000 (07:45 +0000)]
"MDL-19733, directory name need to be cleaned before saving into database"
samhemelryk [Wed, 8 Jul 2009 04:12:11 +0000 (04:12 +0000)]
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
samhemelryk [Wed, 8 Jul 2009 03:27:27 +0000 (03:27 +0000)]
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
samhemelryk [Wed, 8 Jul 2009 01:56:15 +0000 (01:56 +0000)]
ajaxlib MDL-19690 Fixed minor bug because of missing global
samhemelryk [Wed, 8 Jul 2009 01:52:16 +0000 (01:52 +0000)]
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
moodlerobot [Wed, 8 Jul 2009 00:36:49 +0000 (00:36 +0000)]
Updated the HEAD build version to
20090708
samhemelryk [Tue, 7 Jul 2009 09:09:16 +0000 (09:09 +0000)]
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.
samhemelryk [Tue, 7 Jul 2009 08:49:00 +0000 (08:49 +0000)]
lib-form MDL-16706 Changed inline JS to use PAGE methods
moodler [Tue, 7 Jul 2009 07:43:36 +0000 (07:43 +0000)]
Fixing a notice for Tim
moodler [Tue, 7 Jul 2009 07:35:59 +0000 (07:35 +0000)]
Upgraded this theme to use the new $THEME->pluginsheets
dongsheng [Tue, 7 Jul 2009 07:16:22 +0000 (07:16 +0000)]
"MDL-16706, fixed javascript object used to assoicate editorid with file picker clientid"
moodler [Tue, 7 Jul 2009 07:06:19 +0000 (07:06 +0000)]
accesslib MDL-19730 fixing regression from MDL-19077 where has_capability fails when $USER->id=0 (so they couldn't see blocks etc)
samhemelryk [Tue, 7 Jul 2009 06:16:01 +0000 (06:16 +0000)]
filelib MDL-19707 Converted existing ...str_replace('png','gif')... to use file_extension_icon and file_mimetype_icon
samhemelryk [Tue, 7 Jul 2009 06:05:39 +0000 (06:05 +0000)]
course-modedit MDL-16089 Fixed bug caused by recent changes, unable to edit resources
tjhunt [Tue, 7 Jul 2009 05:06:38 +0000 (05:06 +0000)]
themes: MDL-19077 - take out test code I did not mean to include in my last commit.
tjhunt [Tue, 7 Jul 2009 05:05:06 +0000 (05:05 +0000)]
themes: MDL-19077 - more work on the theme_config class.
* Writing lots more PHPdoc comments for all the settings.
* Strip the comments from the standard theme config.php (see below)
* Move finding the layout template from moodle_core_renderer to the theme_config class
* Move loading meta.php files from moodle_core_renderer to the theme_config class
* MDL-19719 Remove support for $THEME->langsheets, and lang/.../styles.php
* MDL-19719 Put the Vietnamese-specific code into the standard theme
* Support for styles.php in all plugin types (at the theme's discretion). (c/f MDL-16438)
* More PHP doc comments for moodle_core_renderer methods.
About stripping comments from config.php: I'm not sure if this
is a good idea, and I may revert this bit. I am hoping that once
http://phpdocs.moodle.org/HEAD/moodlecore/theme_config.html has
been updated, that will be better than copying and pasting these
comments into every theme. I intend to post in the themes forum
to canvas opinions.
tjhunt [Tue, 7 Jul 2009 04:37:12 +0000 (04:37 +0000)]
Catch another potential type of infinite recursion output initialisation.
samhemelryk [Tue, 7 Jul 2009 04:03:33 +0000 (04:03 +0000)]
lib-filelib MDL-19707 Modified file_extension_icon() to accept full filename
samhemelryk [Tue, 7 Jul 2009 03:56:15 +0000 (03:56 +0000)]
lib-filelib MDL-19707 Added file_extension_icon() and file_mimetype_icon()
After talking with Tim we decided that this would be a better solution than adding more methods to $OUTPUT
tjhunt [Tue, 7 Jul 2009 03:49:46 +0000 (03:49 +0000)]
Typo fix.
tjhunt [Tue, 7 Jul 2009 03:49:13 +0000 (03:49 +0000)]
MDL-19690 - pixpath - cannot use $OUTPUT in CSS. Use $PAGE->theme instead.
moodler [Tue, 7 Jul 2009 03:37:58 +0000 (03:37 +0000)]
tags MDL-19728 Removing tags file and replacing with a tags.txt to explain where to get it
moodler [Tue, 7 Jul 2009 03:33:16 +0000 (03:33 +0000)]
Last tags file!
nicolasconnault [Tue, 7 Jul 2009 02:26:36 +0000 (02:26 +0000)]
MDL-19727 Replaced boilerplates and removed ID tags. Merged from MOODLE_19_STABLE
nicolasconnault [Tue, 7 Jul 2009 02:04:15 +0000 (02:04 +0000)]
MDL-19404 Getting default values for grade_item object when creating a new grade_category. Merged from MOODLE_19_STABLE
nicolasconnault [Tue, 7 Jul 2009 01:57:45 +0000 (01:57 +0000)]
MDL-19429 Validating 0 values for grademin, grademax and gradepass for the edit category form. Also checking for grademax < grademin case. Merged from MOODLE_19_STABLE
moodlerobot [Tue, 7 Jul 2009 00:39:14 +0000 (00:39 +0000)]
Updated the HEAD build version to
20090707
skodak [Mon, 6 Jul 2009 21:18:49 +0000 (21:18 +0000)]
MDL-19725 latest dragmath 0.7.8.1 imported
nicolasconnault [Mon, 6 Jul 2009 06:56:25 +0000 (06:56 +0000)]
MDL-16438 Fixed parsing of get_plugins_list for grader reports.
tjhunt [Mon, 6 Jul 2009 05:32:29 +0000 (05:32 +0000)]
themes: MDL-19077 move deprecated function page_id_and_class to deprecatedlib.php
samhemelryk [Mon, 6 Jul 2009 03:16:17 +0000 (03:16 +0000)]
form-filemanager MDL-16706 Removed inline JS and added PAGE methods
Moodle HQ git importer [Mon, 6 Jul 2009 00:38:18 +0000 (00:38 +0000)]
Fixing drift between CVS and git
moodlerobot [Mon, 6 Jul 2009 00:38:18 +0000 (00:38 +0000)]
Updated the HEAD build version to
20090706
mudrd8mz [Sun, 5 Jul 2009 14:31:58 +0000 (14:31 +0000)]
MDL-19716 moodle_url: new parameter to get URL with unescaped ampersands
moodle_url::get_query_string() and moodle_url::out() now accept new
optional parameter. Backwards compatible. This is needed so we can use returned URL
during redirect() which expects unescaped ampersands.
dongsheng [Sun, 5 Jul 2009 14:15:18 +0000 (14:15 +0000)]
"MDL-18830, add watermark to flickr image"
tjhunt [Sun, 5 Jul 2009 02:16:56 +0000 (02:16 +0000)]
MDL-19714 Fatal errors when installing HEAD \r\rThis is my attempt to fix things by copying code from setup.php to install.php. Seems to work now.
moodlerobot [Sun, 5 Jul 2009 00:38:22 +0000 (00:38 +0000)]
Updated the HEAD build version to
20090705
moodlerobot [Sun, 5 Jul 2009 00:28:06 +0000 (00:28 +0000)]
Automatic installer.php lang files by installer_builder (
20090705)
skodak [Sat, 4 Jul 2009 19:17:48 +0000 (19:17 +0000)]
MDL-16597 temporary icon fix
skodak [Sat, 4 Jul 2009 19:03:44 +0000 (19:03 +0000)]
MDL-16597 at least basic support for displaying of subdirectory content and general cleanup
skodak [Sat, 4 Jul 2009 18:47:56 +0000 (18:47 +0000)]
MDL-14589 fixed area tree generation
skodak [Sat, 4 Jul 2009 18:21:43 +0000 (18:21 +0000)]
fixed missing CFG global
mits [Sat, 4 Jul 2009 17:16:29 +0000 (17:16 +0000)]
MDL-19713 Fixed a typo.
skodak [Sat, 4 Jul 2009 16:31:33 +0000 (16:31 +0000)]
fixed missing OUTPUT global regression
tjhunt [Sat, 4 Jul 2009 14:23:49 +0000 (14:23 +0000)]
Re-order the code, so we process the actions before we do any output.\r\rThat is the right order anyway, and avoids the problem where require_capability\rafter output is started leads to an exception being thrown.
tjhunt [Sat, 4 Jul 2009 14:22:11 +0000 (14:22 +0000)]
Add a warning that require_capabiliy can only be used before output is started.
tjhunt [Sat, 4 Jul 2009 13:36:19 +0000 (13:36 +0000)]
XHTML strict.
tjhunt [Sat, 4 Jul 2009 13:36:05 +0000 (13:36 +0000)]
outputlib: MDL-19077 better reporting when open/close containers don't match.
dongsheng [Sat, 4 Jul 2009 11:20:39 +0000 (11:20 +0000)]
"MDL-13766, add language string for repository plugin"
dongsheng [Sat, 4 Jul 2009 11:17:33 +0000 (11:17 +0000)]
"MDL-13766, add language string for file picker"
skodak [Sat, 4 Jul 2009 11:15:16 +0000 (11:15 +0000)]
MDL-19689 get_coursemodule_from_id() and get_coursemodule_from_instance() now have $strictness parameter too
skodak [Sat, 4 Jul 2009 10:53:57 +0000 (10:53 +0000)]
MDL-19689 fixed strictness constants, thanks Tim
skodak [Sat, 4 Jul 2009 09:48:56 +0000 (09:48 +0000)]
MDL-16438 fixed portfolio regression
skodak [Sat, 4 Jul 2009 09:35:03 +0000 (09:35 +0000)]
MDL-19689 adding IGNORE_MULTIPLE to get_record - please note this parameter is discouraged
skodak [Sat, 4 Jul 2009 09:30:59 +0000 (09:30 +0000)]
MDL-19689 fixed strictness constants, thanks Tim
moodlerobot [Sat, 4 Jul 2009 00:38:53 +0000 (00:38 +0000)]
Updated the HEAD build version to
20090704
skodak [Fri, 3 Jul 2009 22:38:56 +0000 (22:38 +0000)]
MDL-19689 new $strictness parameter in $DB->get_record() and $DB->get_field() family of DML methods
skodak [Fri, 3 Jul 2009 21:48:06 +0000 (21:48 +0000)]
MDL-19676 removing premature commit
skodak [Fri, 3 Jul 2009 13:40:37 +0000 (13:40 +0000)]
MDL-14589 improved _pluginfile function - added forcedownload param and fixed docs
skodak [Fri, 3 Jul 2009 13:39:39 +0000 (13:39 +0000)]
MDL-14589 improved _pluginfile function - added forcedownload param and fixed docs
skodak [Fri, 3 Jul 2009 13:39:14 +0000 (13:39 +0000)]
MDL-14589 improved _pluginfile function - added forcedownload param
skodak [Fri, 3 Jul 2009 13:35:36 +0000 (13:35 +0000)]
MDL-16089 entry in modules table created before calling install.php because it might be used there already, also if something fails in install.php the db will be in a more consistent state
skodak [Fri, 3 Jul 2009 13:33:03 +0000 (13:33 +0000)]
MDL-16089 adding easier access to current module instance data in modedit forms