8173 Commits

Author SHA1 Message Date
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
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
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
tjhunt
fdeb7fa192 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.
2009-07-07 05:05:06 +00:00
tjhunt
87b6851cf9 Catch another potential type of infinite recursion output initialisation. 2009-07-07 04:37:12 +00:00
samhemelryk
2dcb7d0be0 lib-filelib MDL-19707 Modified file_extension_icon() to accept full filename 2009-07-07 04:03:33 +00:00
samhemelryk
9dffa7af76 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
2009-07-07 03:56:15 +00:00
tjhunt
641e6ecd58 Typo fix. 2009-07-07 03:49:46 +00:00
skodak
aef0bc4830 MDL-19725 latest dragmath 0.7.8.1 imported 2009-07-06 21:18:49 +00:00
tjhunt
a64e25f65d themes: MDL-19077 move deprecated function page_id_and_class to deprecatedlib.php 2009-07-06 05:32:29 +00:00
samhemelryk
1420162a3a form-filemanager MDL-16706 Removed inline JS and added PAGE methods 2009-07-06 03:16:17 +00:00
mudrd8mz
c7f5e16a63 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.
2009-07-05 14:31:58 +00:00
skodak
4fd8ef55ea MDL-16597 temporary icon fix 2009-07-04 19:17:48 +00:00
skodak
3bd3e067d6 MDL-16597 at least basic support for displaying of subdirectory content and general cleanup 2009-07-04 19:03:44 +00:00
skodak
3b6076788d MDL-14589 fixed area tree generation 2009-07-04 18:47:56 +00:00
skodak
65635c0144 fixed missing CFG global 2009-07-04 18:21:43 +00:00
tjhunt
8a9c1c1c2d Add a warning that require_capabiliy can only be used before output is started. 2009-07-04 14:22:11 +00:00
tjhunt
4af1e3b060 outputlib: MDL-19077 better reporting when open/close containers don't match. 2009-07-04 13:36:05 +00:00
skodak
4fea29e40e MDL-19689 get_coursemodule_from_id() and get_coursemodule_from_instance() now have $strictness parameter too 2009-07-04 11:15:16 +00:00
skodak
2bad34a309 MDL-19689 fixed strictness constants, thanks Tim 2009-07-04 10:53:57 +00:00
skodak
98c8594a76 MDL-16438 fixed portfolio regression 2009-07-04 09:48:56 +00:00
skodak
6c7f537455 MDL-19689 adding IGNORE_MULTIPLE to get_record - please note this parameter is discouraged 2009-07-04 09:35:03 +00:00
skodak
e6c6531cce MDL-19689 fixed strictness constants, thanks Tim 2009-07-04 09:30:59 +00:00
skodak
af12ea93ba MDL-19689 new $strictness parameter in $DB->get_record() and $DB->get_field() family of DML methods 2009-07-03 22:38:56 +00:00
skodak
2e3da29789 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 2009-07-03 13:35:36 +00:00
skodak
49427edbbd MDL-19708 adding missing sumbit button class include 2009-07-03 13:31:37 +00:00
tjhunt
94398fb3e8 MDL-19696 make sure install works. 2009-07-03 09:03:50 +00:00
tjhunt
ae96b517a2 MDL-19696 & MDL-16706 refactor sam's redirect changes, so they can work during initial install. 2009-07-03 09:03:29 +00:00
tjhunt
d436d197d1 MDL-19690 - the last lot of $CFG->pixpath to $OUTPUT->old_icon_url
Including MDL-19693

RIP $CFG->pixpath
2009-07-03 07:55:30 +00:00
tjhunt
3e2e421922 XHTML strict 2009-07-03 07:17:41 +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
nicolasconnault
4d13d47060 MDL-19677 Reverting prematurely committed blog patch 2009-07-03 05:54:49 +00:00
jerome
600313b982 output MDL-19077 typo bug 2009-07-03 04:08:52 +00:00
stronk7
0a7e899d86 MDL-6218 TEXT/BINARY columns and default clauses - forbidden since ages, warn and autofix them if found 2009-07-03 01:12:59 +00:00
skodak
b8e99844ef MDL-19696 undoing my previous veryveryuglyhack, I did not solve much, sorry 2009-07-02 20:29:21 +00:00
stronk7
122e7ef56c MDL-19057 ddl tests - slowly advancing. Added some test to check for MDL-19695 behaviour 2009-07-02 16:13:30 +00:00
stronk7
2baf1380d4 MDL-19695 field dependencies - defined new exception ddl_dependency_exception that
will be thrown when one DDL operation (drop only for now) is attempted over one
field being part of indexes.
2009-07-02 16:08:44 +00:00
stronk7
4276a19a78 MDL-19695 field dependencies - before committing the dependency checker, fix all places in upgrade
that will break once running with dependencies enabled
2009-07-02 16:05:47 +00:00
stronk7
fdc391470e Enums are out in 2.0, so we cannot introduce any in the 1.9 => 2.0 upgrade. Deleting the upgrade block. 2009-07-02 15:30:30 +00:00
skodak
c1f58efef7 MDL-19699 fixed blog upgrade trouble and one notice 2009-07-02 15:14:23 +00:00
skodak
41d2f7f781 MDL-16438 fixed incomplete plugin centralisation, sorry; unfortunately install is kind of non-working now; this may break current dev installs :-( 2009-07-02 15:02:51 +00:00
skodak
66491cf130 MDL-19415 fixing deprecated use of contructors 2009-07-02 14:58:41 +00:00
skodak
f071ad0269 MDL-19696 veryveryuglyhack which partially ubreaks installation after latest pagelib changes 2009-07-02 13:39:55 +00:00