Log of /moodle/lib/weblib.php
Parent Directory
Revision
1.1342 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Oct 1 10:31:42 2009 WST (7 weeks, 4 days ago) by
samhemelryk
Branch:
MAIN
Changes since
1.1341: +9 -0 lines
Diff to
previous 1.1341
simpletest-navigation MDL-20395 Fixed up regressions in the simpletest caused by recent changes to upgrades to navigation lib.
Also fixed issue whereby PAGE->set_url was being called by testdeprecatedlib but not being reset to the original value causing several flow on errors through simpletests
Revision
1.1341 -
(
view)
(
download)
(
annotate)
-
[selected]
Thu Oct 1 02:13:27 2009 WST (7 weeks, 4 days ago) by
tjhunt
Branch:
MAIN
Changes since
1.1340: +1 -1 lines
Diff to
previous 1.1340
unit tests: MDL-20398 spurious exceptions when $CFG->debugdisplay is false
Doh! I had the logic the wrong way round in my previous commit. Sorry.
Revision
1.1338 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Sep 23 14:05:37 2009 WST (2 months ago) by
samhemelryk
Branch:
MAIN
Changes since
1.1337: +13 -1 lines
Diff to
previous 1.1337
,
to
selected 1.1341
navigation MDL-20332 MDL-20324 Modifications to fix the following issues:
* If no active node is found when the navigation is called upon then we attempt to find a best match active node
* Links are now produced with frame breakout actions
* Links ending with / are presumed index.php for matching purposes
Revision
1.1332 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri Aug 28 16:47:32 2009 WST (2 months, 3 weeks ago) by
samhemelryk
Branch:
MAIN
Changes since
1.1331: +0 -415 lines
Diff to
previous 1.1331
,
to
selected 1.1341
navigation MDL-14632 Very significant navigation commit
This patch introduces two new blocks global_navigation_tree and settings_navigation_tree
both of which have been designed to make full use of the new navigation objects available through
the $PAGE object.
Bulk of this code is within lib/navigationlib.php
Revision
1.1327 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Aug 13 09:16:30 2009 WST (3 months, 1 week ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.1326: +2 -0 lines
Diff to
previous 1.1326
,
to
selected 1.1341
MDL-19756
* Removed outputpixfinders.php and put that code back in outputlib.php
* Created labelled_html_component class and subclassed all appropriate components from it
* Added component::add_confirm_action($message) as a shortcut for adding a confirmation popup
* Fixed bug in close_window_button()
Revision
1.1306 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon Jul 27 18:33:00 2009 WST (3 months, 3 weeks ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.1305: +37 -809 lines
Diff to
previous 1.1305
,
to
selected 1.1341
MDL-19756 Migrated the following functions from weblib to outputlib:
1. button_to_popup_window
2. link_to_popup_window
3. print_single_button
4. print_spacer
5. print_file_picture (deprecated)
6. print_user_picture
7. print_png (deprecated)
8. helpbutton
9. doclink
10. print_paging_bar
11. notice_yesno
Revision
1.1302 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon Jul 13 19:10:30 2009 WST (4 months, 1 week ago) by
mudrd8mz
Branch:
MAIN
Changes since
1.1301: +0 -185 lines
Diff to
previous 1.1301
,
to
selected 1.1341
MDL-19755 print_table replaced with $OUTPUT->table
rowclass property has been deprecated, rowclasses should be used.
Direct assigning of the class has been deprecated,
moodle_html_elements::set_classes() should be used instead. In both
cases, debugging message is displayed.
Revision
1.1298 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Jul 9 15:35:06 2009 WST (4 months, 2 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1297: +25 -0 lines
Diff to
previous 1.1297
,
to
selected 1.1341
themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)
Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)
The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.
How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.
Further refinement for how the theme and block code gets initialised.
Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)
Things that are still broken:
* some pages in lesson, quiz and resource. I'm working on it.
* lots of developer debug notices pointing out things that
need to be updated.
Revision
1.1297 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Jul 8 11:27:27 2009 WST (4 months, 2 weeks ago) by
samhemelryk
Branch:
MAIN
Changes since
1.1296: +1 -0 lines
Diff to
previous 1.1296
,
to
selected 1.1341
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
Revision
1.1295 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Sun Jul 5 22:31:58 2009 WST (4 months, 2 weeks ago) by
mudrd8mz
Branch:
MAIN
Changes since
1.1294: +13 -4 lines
Diff to
previous 1.1294
,
to
selected 1.1341
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.
Revision
1.1283 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Jul 1 13:54:26 2009 WST (4 months, 3 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1282: +5 -821 lines
Diff to
previous 1.1282
,
to
selected 1.1341
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.
Revision
1.1281 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon Jun 29 16:17:31 2009 WST (4 months, 3 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1280: +8 -187 lines
Diff to
previous 1.1280
,
to
selected 1.1341
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.
Revision
1.1280 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon Jun 29 15:19:05 2009 WST (4 months, 3 weeks ago) by
samhemelryk
Branch:
MAIN
Changes since
1.1279: +32 -68 lines
Diff to
previous 1.1279
,
to
selected 1.1341
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
Revision
1.1278 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri Jun 26 17:06:16 2009 WST (4 months, 4 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1277: +71 -710 lines
Diff to
previous 1.1277
,
to
selected 1.1341
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.
Revision
1.1269 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri Jun 19 22:25:57 2009 WST (5 months ago) by
skodak
Branch:
MAIN
Changes since
1.1268: +16 -20 lines
Diff to
previous 1.1268
,
to
selected 1.1341
MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions
Revision
1.1262 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri Jun 12 20:13:07 2009 WST (5 months, 1 week ago) by
tjhunt
Branch:
MAIN
Changes since
1.1261: +24 -273 lines
Diff to
previous 1.1261
,
to
selected 1.1341
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.)
Revision
1.1246 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed May 6 16:55:55 2009 WST (6 months, 2 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1245: +3 -3 lines
Diff to
previous 1.1245
,
to
selected 1.1341
moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
Revision
1.1237 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed May 6 16:29:23 2009 WST (6 months, 2 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1236: +30 -33 lines
Diff to
previous 1.1236
,
to
selected 1.1341
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!
Revision
1.1227 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon Apr 13 14:56:33 2009 WST (7 months, 1 week ago) by
tjhunt
Branch:
MAIN
Changes since
1.1226: +33 -123 lines
Diff to
previous 1.1226
,
to
selected 1.1341
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
Revision
1.1223 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Apr 1 08:39:17 2009 WST (7 months, 3 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1222: +10 -14 lines
Diff to
previous 1.1222
,
to
selected 1.1341
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.
Revision
1.1220 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon Mar 23 17:15:22 2009 WST (8 months ago) by
tjhunt
Branch:
MAIN
Changes since
1.1219: +3 -3 lines
Diff to
previous 1.1219
,
to
selected 1.1341
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.
Revision
1.1211 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Feb 4 17:21:18 2009 WST (9 months, 2 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1210: +6 -6 lines
Diff to
previous 1.1210
,
to
selected 1.1341
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.
Revision
1.1197 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Sat Jan 3 23:28:03 2009 WST (10 months, 2 weeks ago) by
skodak
Branch:
MAIN
Changes since
1.1196: +7 -7 lines
Diff to
previous 1.1196
,
to
selected 1.1341
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)
Revision
1.1182 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Dec 4 17:53:11 2008 WST (11 months, 2 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1181: +2 -59 lines
Diff to
previous 1.1181
,
to
selected 1.1341
course categories: Fix many bugs with category editing and permissions. Clean up code.
Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.
* Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
* Enforce those correctly. (Note MDL 17502 is still outstanding.)
* Don't screw up category sort order when you just edit name or description.
* Niceties like where redirects go when you cancel or submit forms.
* Make sure a global course creator can see the site admin block.
* Don't allow a category to be made the child of one of its children!
* General code cleanup to bring key files more in line with best pracitice.
Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.
Merged from MOODLE_19_STABLE.
Revision
1.970.2.121 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Dec 4 17:49:48 2008 WST (11 months, 2 weeks ago) by
tjhunt
Branch:
MOODLE_19_STABLE
Changes since
1.970.2.120: +2 -59 lines
Diff to
previous 1.970.2.120
, to
branch point 1.970
,
to
selected 1.1341
course categories: Fix many bugs with category editing and permissions. Clean up code.
Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.
* Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
* Enforce those correctly. (Note MDL 17502 is still outstanding.)
* Don't screw up category sort order when you just edit name or description.
* Niceties like where redirects go when you cancel or submit forms.
* Make sure a global course creator can see the site admin block.
* Don't allow a category to be made the child of one of its children!
* General code cleanup to bring key files more in line with best pracitice.
Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.
Revision
1.1172 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Nov 20 18:57:21 2008 WST (12 months ago) by
tjhunt
Branch:
MAIN
Changes since
1.1171: +10 -10 lines
Diff to
previous 1.1171
,
to
selected 1.1341
define roles: MDL-16966 etc. polishing the new roles UI following a meeting with Martin.
* Move the show/hide advanced button a bit down the page.
* Improve save button caption when creating a role.
* Don't show defaults on the basic define roles screen.
* Explain the background shading on the advanced roels screen.
* Fix the problem with the risks link to Moodle docs.
* Help icon by the permissions column heading.
* Tables with rotated <th>s, make them vertical-align: bottom.
* Rename explain.php and explainhascapability.php to check.php and explain.php
* Tool tips on the number headers in the explain table.
* Explain table - role names were missing.
* Allow link_to_popup_window to work with full URLs.
Revision
1.1171 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Nov 20 15:59:11 2008 WST (12 months ago) by
tjhunt
Branch:
MAIN
Changes since
1.1170: +37 -26 lines
Diff to
previous 1.1170
,
to
selected 1.1341
quiz editing: MDL-17285 This is Olli Savolainen's new interface for editing quizzes.
This was started and usability tested as a Finnish Summer of Code project, and then Olli did further work on it in his own time to get it in shape for inclusion in Moodle 2.0. I reviewed all the code. There are a number of minor outstanding issues that will be fixed soon. See the subtasks of MDL-17284 for a list.
The goal of these changes is to:
* help teachers new to Moodle, so when they first see the quiz editing page, they don't go "Huh! What on earth am I supposed to do here?"
* help novice Moodle users understand and learn to use some of the more advanced quiz feature;
* but, without slowing down more experienced quiz users.
Naturally, with ambitous goals like that, we won't have managed to satisy everybody, but I think this change is a big step in the right direction.
There is extensive documentation on this project at http://docs.moodle.org/en/Development:Quiz_UI_redesign.
Revision
1.1169 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Nov 13 17:41:00 2008 WST (12 months, 1 week ago) by
tjhunt
Branch:
MAIN
Changes since
1.1168: +3 -3 lines
Diff to
previous 1.1168
,
to
selected 1.1341
cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
Revision
1.1168 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Nov 5 17:17:32 2008 WST (12 months, 2 weeks ago) by
tjhunt
Branch:
MAIN
Changes since
1.1167: +13 -7 lines
Diff to
previous 1.1167
,
to
selected 1.1341
role overrides: MDL-17070 Improve override roles page to match the recent usability improvements on the assign page.
Including:
MDL-11529 When assigning/overriding roles, the dropdown for switching to another role should have a number in brackets
MDL-16549 Should not be able to edit the permission associated with moodle/site:doanything on any role.
Revision
1.1142 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri Sep 19 12:51:47 2008 WST (14 months ago) by
tjhunt
Branch:
MAIN
Changes since
1.1141: +34 -2 lines
Diff to
previous 1.1141
,
to
selected 1.1341
New function to make it easy when you just want to call one JavaScript function, so you don't have to worry about constructing the script tag yourself. I did this in the context of MDL-12391, but I think it is generally userful.
Revision
1.1127 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Aug 20 10:52:29 2008 WST (15 months ago) by
dongsheng
Branch:
MAIN
Changes since
1.1126: +3 -3 lines
Diff to
previous 1.1126
,
to
selected 1.1341
MDL-13766
1. Use treeview display files in repository
2. Dymanicly loading file support
3. Upload file in local repository plugin
4. Move file picker to the top level of DOM
5. get original photo format from flickr web service
Revision
1.1123 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Aug 7 11:33:47 2008 WST (15 months, 2 weeks ago) by
dongsheng
Branch:
MAIN
Changes since
1.1122: +9 -3 lines
Diff to
previous 1.1122
,
to
selected 1.1341
MDL-13766
1. Pass context information to repository
TODO
Not sure about the way to get context, hard to find where we are, because print_textarea and moodle may be used in any place in moodle.
2. Change parameter type in ws.php
Revision
1.1110 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Jul 24 23:22:31 2008 WST (16 months ago) by
jamiesensei
Branch:
MAIN
Changes since
1.1109: +19 -8 lines
Diff to
previous 1.1109
,
to
selected 1.1341
MDL-15813 "return params or a param from moodle_url params and param method when no value is passed to method to set url param(s)."
Methods param and params can now be used in the following ways :
$url->params(); // returns params
$url->params($arrayofnewparams);// add params to url params and then returns all the params.
//--
$url->param('id');//returns value of id param.
$url->param('id', 5); set id param to 5.
Revision
1.1075 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed May 21 22:59:33 2008 WST (18 months ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.1074: +24 -14 lines
Diff to
previous 1.1074
,
to
selected 1.1341
MDL-14905 Started on the DDL functional tests. Added an ugly but temporary hack into error() and print_error(), so that they throw an exception instead of dying when UNITTEST is defined.
Revision
1.1066 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Sat May 3 00:11:30 2008 WST (18 months, 3 weeks ago) by
jamiesensei
Branch:
MAIN
Changes since
1.1065: +3 -3 lines
Diff to
previous 1.1065
,
to
selected 1.1341
MDL-14663 "link_to_popup_window displays 'Click here....' as the link text if you pass in 0 as the link text."
Also fixing the problem in link_to_popup_window function. Test for null instead of empty.
Revision
1.1055 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Apr 9 00:10:49 2008 WST (19 months, 2 weeks ago) by
sam_marshall
Branch:
MAIN
Changes since
1.1054: +5 -5 lines
Diff to
previous 1.1054
,
to
selected 1.1341
MDL-14260: Changed print_heading_with_help so that the help button is outside the heading (for accessibility reasons) and changed themes so that this makes no visual difference.
Revision
1.1047 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Mar 20 15:05:45 2008 WST (20 months ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.1046: +5 -5 lines
Diff to
previous 1.1046
,
to
selected 1.1341
MDL-13880 Overridden and excluded grades are now coloured with alternate row colours that override the default alternate row colours (gray). I also fixed the long-standing notice about aggregationposition. See attached patch.
Revision
1.1034 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Sat Feb 16 01:40:45 2008 WST (21 months, 1 week ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.1033: +3 -3 lines
Diff to
previous 1.1033
,
to
selected 1.1341
MDL-13459 Didn't use the patch, which puts its finger in too many pies. Instead just implemented a quick-fix, a temporary get_assignable_for_switchrole() function. It only affects the switchroles menu. Merging from MOODLE_19_STABLE
Revision
1.1031 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri Feb 1 23:10:50 2008 WST (21 months, 3 weeks ago) by
skodak
Branch:
MAIN
Changes since
1.1030: +12 -12 lines
Diff to
previous 1.1030
,
to
selected 1.1341
MDL-12945 changing get_fast_modinfo() section property to sectionnum to prevent conflicts with real cm->section; full recent activity speedup when printing user pictures in forum; merged from MOODLE_19_STABLE
Revision
1.1029 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri Jan 25 05:33:51 2008 WST (21 months, 4 weeks ago) by
skodak
Branch:
MAIN
Changes since
1.1028: +76 -89 lines
Diff to
previous 1.1028
,
to
selected 1.1341
MDL-12945 a slightly bigger patch for performance in recent activity and various group related issues + some other fixes - see list of subtasks in tracker; merged from MOODLE_19_STABLE
Revision
1.970.2.48 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon Jan 14 05:02:54 2008 WST (22 months, 1 week ago) by
urs_hunkler
Branch:
MOODLE_19_STABLE
Changes since
1.970.2.47: +52 -2 lines
Diff to
previous 1.970.2.47
, to
branch point 1.970
,
to
selected 1.1341
MDL-12974 :: We urgently need a simple wrapper function to avoid the advanced containers when only a wrapper div is needed. Pages like for example the tags page look awful in custom_corners with all those unesessarily overlapping boxes.
I created the function print_simplewrapper_start($classes='generalbox', $idname='', $return=false) { ... } and used it in tag/indec.php and tag/lib.php.
The pages look much better now in custom_corners.
Revision
1.1021 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri Jan 11 18:29:53 2008 WST (22 months, 1 week ago) by
urs_hunkler
Branch:
MAIN
Changes since
1.1020: +2 -7 lines
Diff to
previous 1.1020
,
to
selected 1.1341
merged from 1.9 :: MDL-12221 :: removed the "nocoursepage" hack, which was an attempt to find out if a page has a layout-table. I developed this hack because Martin said, that he does not see any chance to implement a layout-table check. This hack followed several exception hacks because Moodel pages are inconsistently created. All those exceptions I could delete too.
Now I added a JavaScript layout-table check which works great.
Revision
1.970.2.45 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri Jan 11 18:21:24 2008 WST (22 months, 1 week ago) by
urs_hunkler
Branch:
MOODLE_19_STABLE
Changes since
1.970.2.44: +2 -7 lines
Diff to
previous 1.970.2.44
, to
branch point 1.970
,
to
selected 1.1341
MDL-12221 :: removed the "nocoursepage" hack, which was an attempt to find out if a page has a layout-table. I developed this hack because Martin said, that he does not see any chance to implement a layout-table check. This hack followed several exception hacks because Moodel pages are inconsistently created. All those exceptions I could delete too.
Now I added a JavaScript layout-table check which works great.
Revision
1.1020 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Jan 10 08:15:45 2008 WST (22 months, 2 weeks ago) by
mjollnir_
Branch:
MAIN
Changes since
1.1019: +4 -4 lines
Diff to
previous 1.1019
,
to
selected 1.1341
MDL-12894 Fixing language string mess (language packs containing \n) & moved them to the controllers,
also fixed a few typos and a || instead of && bug. This all relates to the CLI installer.
Revision
1.1019 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Jan 10 00:52:08 2008 WST (22 months, 2 weeks ago) by
urs_hunkler
Branch:
MAIN
Changes since
1.1018: +10 -3 lines
Diff to
previous 1.1018
,
to
selected 1.1341
Merged from 1.9 and checked :: MDL-12221 :: I added changes to weblib and the forum and glossary view pages, the custom_corners and standard theme to get those pages working.
In the view pages I changed the container function call to a simple "echo 'div ...'" to avoid the custom_corners container overhead and page oddity.
In weblib I added "clearfix" handling to the function "print_box_start($classes ...". "clearfix" is handed over to the containing divs. This is a hack, but I didn't know how to handle it without rewriting too much areas.
Revision
1.970.2.44 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Jan 10 00:03:31 2008 WST (22 months, 2 weeks ago) by
urs_hunkler
Branch:
MOODLE_19_STABLE
Changes since
1.970.2.43: +10 -3 lines
Diff to
previous 1.970.2.43
, to
branch point 1.970
,
to
selected 1.1341
MDL-12221 :: I added changes to weblib and the forum and glossary view pages, the custom_corners and standard theme to get those pages working.
In the view pages I changed the container function call to a simple "echo 'div ...'" to avoid the custom_corners container overhead and page oddity.
In weblib I added "clearfix" handling to the function "print_box_start($classes ...". "clearfix" is handed over to the containing divs. This is a hack, but I didn't know how to handle it without rewriting too much areas.
Revision
1.1018 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon Jan 7 10:54:29 2008 WST (22 months, 2 weeks ago) by
mjollnir_
Branch:
MAIN
Changes since
1.1017: +39 -3 lines
Diff to
previous 1.1017
,
to
selected 1.1341
New feature: Command line installer. Credit: Dilan Anurudda.
This was a Google Summer of Code 2007 Project.
This introduces two new files, admin/cliupgrader.php and lib/installlib.php.
It also introduces a new PEAR library, Console_GetOpt. I have recieved permission from the upstream author to include this in GPL Moodle (essentially dual license it) - notes in lib/pear.
Most stuff that outputs html during install gets suppressed by the use of a constant.
Run the script like php admin/cliupgrade.php --help for info.
Note that this all uses strings from install/ rather than lang, so I have updated stringnames.txt accordingly and they'll all be broken until the cronjob that generates them runs.