Commit Graph

168 Commits

Author SHA1 Message Date
nicolasconnault 0f097239c4 MDL-19823 Fixed un-handled case of emty array in foreach loop 2009-09-11 06:59:30 +00:00
nicolasconnault b0e90a0ccd MDL-19792 Fixed number of bugs in URLs 2009-09-09 03:26:18 +00:00
rwijaya b89e4ad8fa tag logs MDL-19604 Add logging for tag editing/updates, merged from MOODLE19_STABLE 2009-09-09 02:43:43 +00:00
samhemelryk 968583af41 tag MDL-19823 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents 2009-09-08 01:30:04 +00:00
nicolasconnault cae837087a MDL-19676 Blog improvements 2009-09-04 00:36:43 +00:00
nicolasconnault 8f6e7e6c12 MDL-19823 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:19:13 +00:00
nicolasconnault 5084583672 MDL-19823 Upgraded calls to choose_from_menu 2009-08-18 00:13:44 +00:00
nicolasconnault 456d32fd29 MDL-19823 Converted print_box* to $OUTPUT->box* 2009-08-10 05:49:45 +00:00
nicolasconnault 928a93daa2 MDL-19823 Converted calls to print_paging_bar 2009-08-07 01:40:01 +00:00
nicolasconnault 1dd2ba5476 MDL-19823 Converted all print_footer() calls 2009-08-06 14:19:31 +00:00
nicolasconnault 73aec3a790 MDL-19823 Migrated calls to print_heading 2009-08-06 08:25:49 +00:00
nicolasconnault cf13298081 MDL-19756 Deprecated update_course_icon() and implemented a simple $OUTPUT->edit_button($moodleurl) method which uses $USER->editing 2009-08-05 02:39:42 +00:00
nicolasconnault c351150fca MDL-19756 MDL-19825 MDL-19823 MDL-19794 Deprecated update_tag_button, update_categories_search_button and print_user, and updated a few pages that depended on the now deprecated functions 2009-08-05 02:03:50 +00:00
tjhunt cfc3f57e38 tags: MDL-19823 missed one $PAGE->set_context yesterday. 2009-07-22 02:32:41 +00:00
tjhunt 0edd65352f tags: part of MDL-19823 - make sure tag pages are in the right context, and set $PAGE->url 2009-07-21 09:16:25 +00:00
tjhunt d4a03c00ea 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.
2009-07-09 07:35:03 +00:00
tjhunt 4096752d1d MDL-19690 - first 53 $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:06:39 +00:00
tjhunt 25ddb7efc9 javascript: MDL-19475 replace require_js calls with $PAGE->requires->js.
This is the final batch.
2009-06-15 07:57:53 +00:00
tjhunt f8b80dbd95 moodle_page: MDL-12212 completely remove the old tag and admin page classes 2009-05-06 09:11:07 +00:00
tjhunt 397fff3870 moodle_page: MDL-12212 eliminate page_tag::print_footer 2009-05-06 09:03:16 +00:00
tjhunt cfcfb9f3d0 moodle_page: MDL-12212 kill legacy page_allows_editing implementations 2009-05-06 09:02:48 +00:00
tjhunt 830dd6e9cd moodle_page: MDL-12212 reimplement user_is_editing, deprecate isediting 2009-05-06 08:59:29 +00:00
tjhunt ad52c04f4c 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
2009-05-06 08:55:53 +00:00
tjhunt 4873f5f709 moodle_page: MDL-12212 Eliminate legacy blocks_ methods
moving blocks will now be broken until the new bockslib is done
2009-05-06 08:53:14 +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 f230ce19ea moodle_page: MDL-12212 implement ->pagetype 2009-05-06 08:34:32 +00:00
mudrd8mz f6d7d5f584 MDL-17492 Do not try to access the first key of an empty array in case of no tag exists yet. Merged from 1.9 stable 2009-03-02 21:51:25 +00:00
mudrd8mz cef5304562 MDL-17492 Reset flag did not work in PostgreSQL. Merged from 1.9
Postgres does not seem to support table alias in UPDATE statement.
Therefore the SQL like
 UPDATE mdl_tag tg SET tg.flag = 0, tg.timemodified = 1236027984 WHERE tg.id IN (4)
ends with an ERROR: column "tg" of relation "mdl_tag" does not exist
The fix is quite easy - just do not use table alias as it makes no sense
here anyway.
2009-03-02 21:45:08 +00:00
tjhunt ec6a0e700a XHTML strict. 2009-01-15 08:48:17 +00:00
tjhunt 565b14d248 tags/blog: Multiple XHTML strict problems. 2009-01-14 08:49:35 +00:00
skodak 973d2660e6 MDL-16613 sesskey cleanup 2009-01-02 10:51:26 +00:00
jmg324 3caea5dc63 MDL-17521 shortcuts at top of tag page for each sort of thing that's been tagged 2008-12-16 16:33:30 +00:00
tjhunt ac324e05ea MDL-16675 change callers to require_js to take advantage of the fact that callers no longer have to add $CFG->wwwroot themselves. 2008-09-25 06:40:52 +00:00
scyrma dae7b4f606 MDL-14489: Make the tag cloud "more extended" in size with small dataset (credits to Matt Gibson) (merge from 1.9) 2008-09-24 08:07:15 +00:00
tjhunt 7264519e3f MDL-16583 - Clean up some fo the places we link to javascript files, to use require_js 2008-09-23 07:00:59 +00:00
scyrma 1cb1f9850e MDL-16602: always display teachers (merge from 1.9) 2008-09-22 09:09:11 +00:00
jbeedell b91de8a599 Essential patch for MDL-11992 course tagging. This prevents a bug that removes offical tags for a course when a user adds a personal tag to that course. 2008-09-05 14:49:06 +00:00
skodak e562ecdc4b MDL-16159 implemented missing access control and security code in course tags 2008-08-21 20:29:42 +00:00
scyrma db3d13029e MDL-15345: Fix in sql query, for postgres. (merge from 1.9) 2008-08-06 02:39:19 +00:00
scyrma 2ce9a1f59d MDL-15661: typo in function name - wrong call meant tag type was set incorrectly (merge from 1.9) 2008-07-16 01:21:31 +00:00
scyrma e7134583d7 MDL-14237: Removing all remaining tag-related uses of html_entity_decode (merge from 1.9) 2008-07-07 07:45:51 +00:00
scyrma a72529c73f MDL-14772: Prevent official tags from being deleted when tag_instance table is empty. (Patch by Hynek Černoch) (Merge from 1.9) 2008-07-07 06:40:35 +00:00
scyrma 38fb819028 MDL-11992: adding course tagging patch, by John Beedell. This feature is not
active by default at this time. Related help files are not included in this
commit, as they are being revised (see issue 15385) and will be sent in soon.
2008-06-30 09:04:07 +00:00
scyrma eafa83ef9d MDL-15345: prevent problem while running tag_compute_correlations under pgsql. (merge from 1.9) 2008-06-23 04:31:41 +00:00
scyrma 48d5652860 MDL-15310: moving capability checks out of the library + code formatting adjustments 2008-06-19 10:02:10 +00:00
scyrma cda19b7ade MDL-14679: fix regression in tag library 2008-06-19 08:16:12 +00:00
nicolasconnault 986dca608e MDL-14679 Corrected incorrect use get_records_list('tags'): replaced by get_records('tags') 2008-06-17 07:07:37 +00:00
dongsheng aad6739758 "MDL-14129, fix print_error" 2008-06-13 06:41:36 +00:00
skodak 294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak 5183f0cc5b MDL-15094 fixed stats regression and prefix cleanup 2008-06-05 20:35:28 +00:00