tjhunt
75781f879c
moodle_page: MDL-12212 ->url and cleanup init of $FULLME, etc.
2009-05-06 08:50:32 +00:00
tjhunt
7ceb61d8ed
moodle_url: MDL-12212 clean up moodle_url coding style
2009-05-06 08:49:12 +00:00
tjhunt
82611d8d33
moodle_page: MDL-12212 ->docspath
2009-05-06 08:48:13 +00:00
tjhunt
ad5d5997ed
moodle_page: MDL-12212 more ->pagepaths to kill
2009-05-06 08:43:51 +00:00
tjhunt
753debd2ab
moodle_page: MDL-12212 ->bodyclasses and initialise_standard_body_classes
2009-05-06 08:42:13 +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
tjhunt
e3e40b4333
filters: MDL-7336 use $PAGE->context now that it exists
2009-05-06 08:31:30 +00:00
tjhunt
c13a5e71cc
moodle_page: MDL-12212 start of new moodle_page class
...
* has course and status fields
* $PAGE->status updated by print_header and footer
* $PAGE->set_course now replace course_setup function
* global $PAGE created in setup.php
* unit tests for functionality so far
* Moodle still seems to work after this commit!
2009-05-06 08:29:22 +00:00
skodak
7d2948bdd0
MDL-18910 full support for module intro editor with embedded images
2009-04-22 07:19:56 +00:00
skodak
43b44d5ea6
MDL-18910 full support for module intro editor with embedded images
2009-04-22 07:14:19 +00:00
skodak
ac3668bfae
MDL-18910 full support for module intro editor with embedded images
2009-04-22 05:10:08 +00:00
skodak
dc5c2bd9eb
MDL-18910 full support for module intro editor with embedded images
2009-04-21 21:17:21 +00:00
skodak
7467e72197
MDL-18900 reimplemented trusttext - now using separate db field; the API will be improved and documented together with the new support functions needed for new Editor element
2009-04-20 11:37:39 +00:00
skodak
cbc2b5df03
MDL-18901 reimplemented trusstext support in glossary + standardising format column for text fields
2009-04-20 10:05:50 +00:00
dongsheng
e189ec00f0
"MDL-18486, remove php varible from file picker code, all javascript code goes into a static file"
2009-04-20 08:53:21 +00:00
skodak
f6949ddb95
MDL-18887 using exceptions instead of @ for ignoring of db update/insert failure
2009-04-17 08:05:55 +00:00
tjhunt
14d20de162
filters: MDL-7336 fix upgrade problem when filterall is on. Thanks Nico for finding.
2009-04-16 09:13:30 +00:00
tjhunt
ccc161f8f0
filters: MDL-7336 change weblib to use the new code
...
* Rename filter base class from filter_base to moodle_text_filter
* Remove unnecessary explicit constructors in moodle_text_filter
subclasses
* New filter_manager class, rather than static methods in filter_base
* Move some logic out of weblib, and into filter_manager
* Count filtering ops when $CFG->perfdebug on, via
performance_measuring_filter_manager
* Kill unused filter_string function. Petr said it should have been
private to weblib
2009-04-13 06:56:32 +00:00
tjhunt
c9ec505b9e
weblib progress_bar: Add a comment and fix some coding style.
2009-04-08 11:46:19 +00:00
tjhunt
3fb002215f
weblib: fix bug with disabled pop_form()s
2009-04-07 07:40:40 +00:00
tjhunt
0c34c7eb50
translation: MDL-18766 reverting. I guess it was not yet ready for prime-time.
...
I'll commit the patch to contrib in case anyone wishes to experiment further.
2009-04-02 02:42:11 +00:00
tjhunt
b4cf937102
translation: MDL-18766 Prototype automatic translation system for Moodle.
...
If Google can do something like http://translate.google.com/ , surely we
can do something just as good in Moodle. Here is a first attempt. It is
a bit rough around the edges, and only a couple of target lananguages
have been implemented so far. (More and better attempts welcome!)
In order to ensure that this gets adequate testing, I have made sure that
it gets turn on by default. However, if you really don't like it, you can
turn it off under Administration > Development -> Experimental settings.
2009-04-01 00:39:17 +00:00
tjhunt
e79079deae
help.php: related to MDL-13816. Clean up the URLs used for help files by removing unused parameters.
2009-03-30 06:11:32 +00:00
tjhunt
c468795ce9
switch roles: MDL-18132 New Role allow switches page finished.
...
I also set up a reasonable set of default allows, including setting up some sensible allow_overrides, whatever the rant in MDL-15841 says.
2009-03-25 04:20:57 +00:00
tjhunt
82701e2443
switch roles: MDL-18132 separate database table role_allow_switch instead of re-using role_allow_assign.
...
This is part 1 that does the back-end:
1. New table role_allow_switch.
2. Upgrade that copies all the allows from role_allow_assign, and then drops the old CFG->allowuserswitchrolestheycantassign.
3. Old function get_assignable_roles_for_switchrole renamed to get_switchable_roles and changed to use the new table. Fixes MDL-18604 in HEAD.
4. Switch callers to use the new function name.
5. Unit tests for this new function.
6. To make those unit tests work, new switch_global_user_id and revert_global_user_id methods in UnitTestCaseUsingDatabase for toggling $USER->id.
I still need to do the editing interface under Administration ► Users ► Permissions ► Define roles. That will be done as a second commit.
2009-03-23 08:15:21 +00:00
tjhunt
4e42a90c53
weblib: Fix test_format_text_email and unit tests.
2009-03-23 03:41:34 +00:00
tjhunt
5f5b443ea8
gift import: MDL-18390 better way to get the question type name.
2009-03-13 09:19:01 +00:00
tjhunt
60cd5b5a34
weblib: Improve PHPdoc comment and parameter names.
2009-02-24 05:09:29 +00:00
tjhunt
e4e5ba8c6f
weblib: finish documenting print_user_picture.
2009-02-16 04:16:10 +00:00
tjhunt
e82e01d1e0
weblib: MDL-18224 Create a better mechanism for outputting progress information from batch jobs
2009-02-12 08:33:42 +00:00
nicolasconnault
413f347520
MDL-18188 Added a call to the new get_browser_version_classes() function in print_header, so that the classes are always added to the body tag.
2009-02-10 15:42:13 +00:00
tjhunt
9cef0c27e4
weblib: XHTML strict.
2009-02-10 03:27:38 +00:00
skodak
9ace50944f
MDL-14924 the same title now used on each upgrade/install page (Moodle - 2.0...) + the same footer with moodle logo now used during installation and upgrade - links to admin docs
2009-02-07 17:56:40 +00:00
tjhunt
7797b0df31
weblib: MDL-17525 Give previous and next links in paging bars class names, so they can be themed.
...
Thanks to Daniel Neis for the patch.
I checked the standard theme, and I don't see any rules there that would erroneously apply to these class names in paging bars.
2009-02-04 08:21:18 +00:00
tjhunt
838f69de81
weblib: MDL-14901 Fix misleading comment on print_navigation
2009-02-04 07:35:06 +00:00
tjhunt
19e12e4bd8
theme / navbar: MDL-14133 every link in the nav bar was getting class="first"!
2009-02-03 09:32:58 +00:00
tjhunt
996c1a6f86
theme / weblib: MDL-14400 Setting $THEME->makenavmenulist = true causes a php notice
2009-02-03 07:47:24 +00:00
skodak
770f0cea30
MDL-17458 fixed headers used during installation
2009-02-01 17:45:32 +00:00
skodak
795a08adb7
MDL-17458 upgrade logging implemented + a lot more refactoring + exceptions implemented in install/upgrade code + lang pack cleanup + some more improvements
2009-01-31 20:07:32 +00:00
sam_marshall
ad70c470dd
MDL-381: Added 'Move' button to reduce accidentally moving forum posts.
2009-01-28 13:10:01 +00:00
sam_marshall
c5cf6bb2e2
MDL-17974: Calendar 'new entry' accessibility improvement
2009-01-28 12:11:32 +00:00
skodak
5c144d605e
MDL-17845 now only one page per installs/upgrade :-D
2009-01-12 15:13:44 +00:00
skodak
27bd819be5
MDL-17848 oops, yet more cron compatibility fixes for console_write() ;-) I have added a new console_write_error() too
2009-01-10 20:44:45 +00:00
skodak
fbd0c5e31f
MDL-17848 general support for CLI scripts in weblib; grrr - fixed regression
2009-01-10 19:46:02 +00:00
skodak
48f2e9fae4
MDL-17848 general support for CLI scripts in weblib
2009-01-10 19:19:51 +00:00
tjhunt
efacb22422
weblib: improve comment.
2009-01-07 06:28:00 +00:00
skodak
11e7b506ce
MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support
2009-01-05 21:37:20 +00:00
skodak
a91b910e4f
MDL-17776 added new define CLI_SCRIPT that identifies all CLI scripts + cron (cli scripts do not have session and do not like HTML in output and are executed from command line, cron is an exception)
2009-01-03 14:28:02 +00:00
skodak
9bda43e6be
MDL-16613 refactore session IP tracking; MDL-14213 improved message when IP changes; MDL-17754 SID is regenerated when terminating session and old session is deleted
2009-01-02 23:49:29 +00:00
skodak
93f66983cc
MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks
2009-01-02 22:56:48 +00:00