Commit graph

9205 commits

Author SHA1 Message Date
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
tjhunt
5ef444007d MDL-19690 - Eliminate all remaining $CFG->modpixpath apart from mod/scorm 2009-07-02 12:25:19 +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
5d3b999468 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:26:02 +00:00
tjhunt
73511be761 MDL-19690 - 4 more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:12:19 +00:00
tjhunt
4096752d1d MDL-19690 - first 53 $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:06:39 +00:00
tjhunt
3aaa27f4cd output: MDL-19690 allow for .png or .gif in $OUTPUT->mod/old_icon_url 2009-07-02 09:28:19 +00:00
sam_marshall
e3568fde9c MDL-19692: Improvement to help icon for completion tickboxes, based on user testing 2009-07-02 09:18:26 +00:00
tjhunt
ebebf55cad output: MDL-19690 icon_finder classes and $OUTPUT->mod/old_icon_url
This is ready to replace $CFG->pixpath and $CFG->modpixpath soon.
2009-07-02 08:49:25 +00:00
samhemelryk
f14c0f1d84 pagelib MDL-19077 Fixed minor error in pagelib 2009-07-02 07:29:08 +00:00
tjhunt
db8d89d822 MDL-19077 I just found a way to reduce the coupling between the classes. 2009-07-02 07:06:25 +00:00
samhemelryk
747b85cb00 ajaxlib MDL-19077 Added strings_for_js method 2009-07-02 04:07:53 +00:00
samhemelryk
e1524dbe5c weblib MDL-16706 Elimate inline scripts, replaced with PAGE methods 2009-07-02 03:47:05 +00:00
nicolasconnault
856b6fe6d2 MDL-19676 Removed course and group visibility settings for blog 2009-07-01 08:49:47 +00:00
tjhunt
b70094743a themes: MDL-19077 change how the theme is initialised and CSS is served.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

$THEME is now initialised at the same time as $OUTPUT. Old functions like
theme_setup are deprecated in favour of methods on $PAGE. There is a new
theme_config class in outputlib.php that deals with loading the theme config.php file.

CSS used to be served by themes styles.php files calling a function in weblib.php.
Now it works by each theme's styles.php file doing
$themename = basename(dirname(__FILE__));
require_once(dirname(__FILE__) . '/../../theme/styles.php');
which is less code to be copied into each theme. (Old-style styles.php files still
work thanks to some code in deprecatedlib.php.)

Admin UI for choosing a theme cleaned up.

A couple of theme-specific hard-coded hacks like $THEME->cssconstants and
$THEME->CSSEdit have been replaced by a more generic $THEME->customcssoutputfunction
hook. See examples at the end of outputlib.php

Also:
* Fix setting the theme in the URL, which seems to have been broken since 1.9.
* Fix up errors on a few pages caused by the new initialisation order.
* MDL-19097 moodle_page::set_course should not set $COURSE unless it is $PAGE.
* httpsrequired() from moodlelib.php moved to $PAGE->https_required().
* Move has_started() method to the renderer base class.
* Further fixes to display of early errors.
* Remove print_header/footer_old from weblib. I did not mean to commit them before.
2009-07-01 05:54:26 +00:00
dongsheng
96705c332a "MDL-19077, pixpath is broken, use initialise_deprecated_cfg_pixpath() as a temporary fix" 2009-07-01 04:11:52 +00:00
samhemelryk
afa2dcad43 outputlib pagelib MDL-19236 Cleaned up PHPdocs on a couple of functions 2009-07-01 03:47:52 +00:00