1076 Commits

Author SHA1 Message Date
nicolasconnault
e42f153c33 MDL-19976 Changing redirect($url->out()) to redirect($url). NEVER, NEVER use redirect($url->out())!!! Bad Tim! :p 2009-07-31 09:30:11 +00:00
stronk7
1a861d244b NOBUG Fixed error happening when restoring missingtype questions if answers weren't present (cast error) Merged from 19_STABLE 2009-07-29 19:00:55 +00:00
tjhunt
aeab3f8d37 calculated qtype: Remove unnecessary call-time pass by reference. 2009-07-24 09:18:19 +00:00
tjhunt
6acbb3192b Remove deprecated function call. 2009-07-22 07:05:57 +00:00
samhemelryk
7a567a92ba quiz MDL-17730 Fixed issues caused by escaped redirect urls 2009-07-20 06:52:40 +00:00
tjhunt
c9f153058e question bank: MDL-19826 Merge from MOODLE_19_STABLE. 2009-07-15 04:06:03 +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
tjhunt
a28c92539e MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:38:41 +00:00
tjhunt
ddedf979b4 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:19:25 +00:00
tjhunt
42d5737a94 MDL-19690 fix some breakage. 2009-07-02 12:35:13 +00:00
tjhunt
e63f88c9a6 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url
and $CFG->modpixpath to $OUTPUT->mod_icon_url
2009-07-02 12:07:58 +00:00
tjhunt
c8873c496b MDL-19690 - eliminate the $OUTPUT->initialise_deprecated_cfg_pixpath horrible hack.
Replace $CFG->pixpath with $OUPTUT->old_icon_url(...) instead.
2009-07-02 11:23:47 +00:00
tjhunt
f2a1963c43 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 11:09:15 +00:00
tjhunt
4096752d1d MDL-19690 - first 53 $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:06:39 +00:00
tjhunt
a5cb8d6987 MDL-19077 - Finish eliminating customcorners-specific code in core.
The custom-corners-specific code now in theme/customcornser/renderers.php
and lib/deprecatedlib.php.

Also, $CFG->pixpath is now causing more problems than ever. If it is
giving your problems, please call $OUTPUT->initialise_deprecated_cfg_pixpath()
as a temporary fix. As you can imagine, we are thinking about a better
long-term fix, which is why that method as a silly, and easy to grep name.
2009-06-29 08:17:31 +00:00
stronk7
81d18ad5c4 MDL-19579 code coverage - finished adding initial $includecoverage attributes 2009-06-26 18:25:46 +00:00
tjhunt
34a2777ccb themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
Also, part of the change from weblib.php functions to $OUTPUT-> methods.

This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.

The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.

A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.

All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
nicolasconnault
6dbcaceef1 MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
tjhunt
25ddb7efc9 javascript: MDL-19475 replace require_js calls with $PAGE->requires->js.
This is the final batch.
2009-06-15 07:57:53 +00:00
mudrd8mz
488275fc71 Fixed missing ";" - spotted during upgrade 2009-06-13 20:56:14 +00:00
skodak
fc29e51b2d MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:34:43 +00:00
skodak
979425b584 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:04:21 +00:00
skodak
0bcf8b6f0d MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:55:51 +00:00
skodak
bb4b6010f3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:17:10 +00:00
tjhunt
cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
tjhunt
3e38c3bf23 Yes the, new, more efficient, variant of the select all checkboxes function. 2009-06-12 12:07:35 +00:00
pichetp
0735b50962 MDL-17366 cleaning code ( space, indentation etc.) 2009-06-11 17:04:18 +00:00
samhemelryk
aa37f5e315 question bank MDL-18822 Corrected merge error in HEAD, thanks Oleg for spotting 2009-06-08 03:23:24 +00:00
tjhunt
aa9c6ecf02 question bank: MDL-18822 Highlight the last question you edited in the list
Helpful if you need to edit a lot of questions - saves you from losing your place.
Idea and patch by Oleg Sychev.
2009-06-05 08:30:53 +00:00
skodak
bf8e93d704 MDL-18293 $DB->somethiong is using exceptions, no need for ifs tehre, removing useless strings 2009-06-03 20:00:08 +00:00
stronk7
577ba35087 MDL-19350 upgrade blocks - adding missing savepoints to question types 2009-06-03 17:27:07 +00:00
stronk7
4ff9ba7d7c towards 2.0 DML 2009-06-03 14:38:25 +00:00
pichetp
4328f8233d MDL-17366 define CALCULATEDSIMPLE , used in xml/format.php 2009-06-03 03:04:04 +00:00
pichetp
1d1f5784f8 MDL-17366 detecting real number of data items in database and modifying lang strings 2009-06-03 03:01:37 +00:00
pichetp
9c1c6c7f75 MDL-17366 allow calculatedsimple question type XML import and export 2009-06-02 17:12:27 +00:00
pichetp
acb85fd541 MDL-17366 a new "temporary" icon image 2009-06-01 20:11:13 +00:00
pichetp
f965e5fbfc MDL-17366 removing echo debugging lines. 2009-06-01 03:14:51 +00:00
pichetp
a31697ba49 MDL-17366 adding control of number of values displayed and validation improvments. 2009-06-01 03:12:29 +00:00
pichetp
83a15d025c MDL-17366 adding the calculatedsimple questiontype 2009-05-29 22:42:22 +00:00
pichetp
315efce701 MDL-19214 Adding category hidden element 2009-05-24 02:33:42 +00:00
pichetp
66d0a55c56 MDL-19210 using the get_database_dataset_items() function 2009-05-24 02:02:31 +00:00
pichetp
a2155a7b74 MDL-19210 adding get_database_dataset_items() function 2009-05-24 02:01:03 +00:00
pichetp
3058e79d22 MDL-19213 testing ifthe wizardpage allows editng the tags 2009-05-21 12:19:45 +00:00
pichetp
ad3a4aa67f MDL-19210 eliminate the generation of multiple dataitems having the same item number 2009-05-21 12:10:42 +00:00
tjhunt
d529807a65 moodle_page: MDL-12212 kill $CFG->pagepath (use $PAGE->set_pagetype)
deprecate $PAGE->get_format_name (use $PAGE->pagetype)
deprecate page_id_and_class (use $PAGE->pagetype)
2009-05-06 08:38:55 +00:00
stronk7
74c288a100 MDL-18577 drop enums support - step2: enums out from install.xml files 2009-05-01 14:07:43 +00:00
gbateson
8693dca9a0 MDL-18883: fix setting of absolute urls for images in subfolders of course files 2009-04-17 01:51:35 +00:00
tjhunt
f13b675702 shortanswer qtype: Add the problem case from http://moodle.org/mod/forum/discuss.php?d=120557 to the unit tests. 2009-04-06 02:03:10 +00:00
fmarier
316914bf6e MDL-17037 ran all GIF images through gifsicle and PNG through optipng 2009-04-05 23:33:00 +00:00
tjhunt
677f62b67a Update a comment as a test of committing via git. 2009-04-02 07:50:33 +00:00