36748 Commits

Author SHA1 Message Date
samhemelryk
8373b720a2 user MDL-16706 updated user.js 2009-07-02 04:03:04 +00:00
samhemelryk
25a2bfda22 user MDL-16706 Elimate inline scripts, replaced with PAGE methods, created user.js 2009-07-02 04:02:40 +00:00
samhemelryk
e1524dbe5c weblib MDL-16706 Elimate inline scripts, replaced with PAGE methods 2009-07-02 03:47:05 +00:00
moodlerobot
a657df7c5b Updated the HEAD build version to 20090702 2009-07-02 00:38:12 +00:00
nicolasconnault
856b6fe6d2 MDL-19676 Removed course and group visibility settings for blog 2009-07-01 08:49:47 +00:00
nicolasconnault
6e155d1c00 MDL-19677 Upgrading sites that use $CFG->bloglevel == BLOG_GROUP_LEVEL or BLOG_COURSE_LEVEL to BLOG_SITE_LEVEL, and removed these options from admin/settings/security.php 2009-07-01 08:17:53 +00:00
skodak
cdaacf753f MDL-19674 even uglier hack whcih works around the pixpath problem, the long term solution is to write a new setting 2009-07-01 08:10:06 +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
tjhunt
0456fc1ac4 MDL-19674 - err - slighly more sensible version of the previous commit. 2009-07-01 04:17:31 +00:00
tjhunt
14ab5ca92b Grrrr!!! MDL-19674 2009-07-01 04:13:47 +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
nicolasconnault
93feac1719 MDL-19673 Removed the semi-transparent underlay of YUI tooltips, they don't work in IE. Merged from MOODLE_19_STABLE 2009-07-01 03:57:05 +00:00
samhemelryk
afa2dcad43 outputlib pagelib MDL-19236 Cleaned up PHPdocs on a couple of functions 2009-07-01 03:47:52 +00:00
dongsheng
4769306136 "MDL-19180, url plugin, grab image resources only" 2009-07-01 03:46:20 +00:00
moodlerobot
19f443c936 Updated the HEAD build version to 20090701 2009-07-01 00:38:58 +00:00
iarenaza
afacbf004a CAS authentication: MDL-19671 phpCAS::getUser can return a mixed-case username, so lower-case it for comparison.
Merged from MOODLE_18_STABLE
2009-06-30 23:33:11 +00:00
skodak
adf8f3f9ad MDL-19668 improvements of _with_advanced admin setting classes finished, quiz settings updated too 2009-06-30 16:55:56 +00:00
skodak
c304d58106 MDL-19668 renaming textbox and select elements 2009-06-30 15:23:33 +00:00
skodak
0c079f1912 MDL-19668 PHPDocs improvements and minor cleanup 2009-06-30 15:19:12 +00:00
tjhunt
b2104e9799 Fix typo 2009-06-30 12:29:14 +00:00
wildgirl
5e198b013d database help file: MDL-14132 note re. using with auto-linking filter 2009-06-30 09:28:32 +00:00
dongsheng
93e9aa2792 "MDL-18520, file system, supported choose a subdirectory" 2009-06-30 09:10:42 +00:00
samhemelryk
a1b53dcf3f messages MDL-19664 Clean up the messages javascript code
I have cleaned up the message Javascript code, implementing the new PAGE methods
and at the same time implemented the new OUTPUT methods
2009-06-30 08:33:29 +00:00
samhemelryk
17a6649b95 output MDL-19077 Implemented periodic refresh to meta refresh by delay
Also created layout-popup.php for standardwhite theme to provide a simpler template
2009-06-30 07:57:41 +00:00
moodler
cadf365256 mod/assignment/type/online MDL-14045 Just tidying up code and removing inappropriate styles 2009-06-30 07:40:08 +00:00
tjhunt
210dcb69ee XHTML strict 2009-06-30 06:00:12 +00:00
nicolasconnault
2ad4090ed7 MDL-19467 Fixed one of Tim's typos and added a language string for URL 2009-06-30 05:49:58 +00:00
tjhunt
7544d13c28 MDL-19077 - re-fix the problem of exceptions being thrown in $OUTPUT->header
Also, fix lines theme.
2009-06-30 05:34:50 +00:00
samhemelryk
b7337ab7ec outputlib MDL-19077 Fixed a typo I made in the has_started method 2009-06-30 02:58:09 +00:00
jerome
72c6b04ae7 report MDL-19660 fix PHP Fatal error when display report (wrong field order into get_users_by_capability) - bug only in 2.0 2009-06-30 02:42:56 +00:00
dongsheng
390baf4664 "MDL-13766, update image path, see http://moodle.org/mod/forum/discuss.php?d=126887" 2009-06-30 02:12:16 +00:00
tjhunt
42fafd4b57 debug / lang string: MDL-19467 Debugging option to show where each lang string came from.
New option on Administration -> Server -> Debugging called
'Show origin of languages strings' ($CFG->debugstringids).

If this is set, get_string will add the name of the lang file and the id of the string
to each string it gets, so instead of returning 'No', it will return '{No admin/checkboxno}'.
2009-06-30 01:59:48 +00:00
samhemelryk
c892b53108 course-reports MDL-16438 Fixed broken reports, changed plugin list type to coursereport 2009-06-30 01:41:28 +00:00
samhemelryk
c2a1db4576 message MDL-16706 Replaced inline JS with new PAGE methods and created message.js 2009-06-30 01:28:32 +00:00
moodlerobot
ab3a235be4 Updated the HEAD build version to 20090630 2009-06-30 00:38:22 +00:00
stronk7
fcae2e3ba3 Fixed typo that was breaking badly custom_corner deprecated uses. 2009-06-29 17:11:34 +00:00
dongsheng
4deb544fbe "MDL-19654, implement draft files browsing and management" 2009-06-29 14:03:23 +00:00
tjhunt
48adf91aaf MDL-19077 - fix a $CFG->pixpath problem. 2009-06-29 09:19:53 +00:00
tjhunt
f580b270f3 Eliminate commented out code. 2009-06-29 09:16:48 +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
samhemelryk
82afb58797 filter-mediaplugin MDL-16706 Replaced inline JS with new PAGE methods and created mediaplugin.js 2009-06-29 08:05:21 +00:00
samhemelryk
e877532055 lib MDL-19077 Created output redirect method and implemented against weblib redirect method
This resolves the meta bug that was used when redirecting with a delay
Thanks Tim for the help with this one
2009-06-29 07:19:05 +00:00
tjhunt
c84a2dbea2 MDL-19077 - change how $OUTPUT is initialised.
Please read the comment at the top of bootstrap_renderer in setuplib.php
2009-06-29 05:00:45 +00:00
dongsheng
a4103e65fa "MDL-13766, fixed image path" 2009-06-29 03:41:02 +00:00
dongsheng
129deb0273 "MDL-19180, convert relative url to absolute url in url plugin" 2009-06-29 03:32:38 +00:00
tjhunt
d6c5e269b5 Fix deprecated function calls. 2009-06-29 03:10:06 +00:00
samhemelryk
f3665549b8 mod-scorm MDL-16706 Replaced inline JS with new PAGE methods and created player.js 2009-06-29 02:38:22 +00:00
samhemelryk
fc4f5796cc formslib MDL-19626 Changed JS string handling to new $PAGE methods, Thanks Dan 2009-06-29 02:10:49 +00:00
samhemelryk
9262d2d30f formslib MDL-19626 Fixed broken show/hide advanced button
Updated formslib showadvanced inline JS to use new $PAGE methods
and replaced inline noscript with css handled display
2009-06-29 01:58:11 +00:00
moodlerobot
a36a2bc8e5 Updated the HEAD build version to 20090629 2009-06-29 00:38:23 +00:00