137 Commits

Author SHA1 Message Date
Petr Skoda
61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +00:00
Sam Hemelryk
2ab47386a7 NOBUG: Fixed missed string 2010-03-18 01:13:23 +00:00
Petr Skoda
f8dab96615 MDL-20204 a lot more steps away from html_select 2010-02-10 09:37:50 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda
5c2ed7e215 MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements 2010-01-03 15:46:14 +00:00
Petr Skoda
b5d0cafc6f MDL-20787 final switch to new $OUTPUT->pix_url() - yay! 2009-12-16 21:50:45 +00:00
Petr Skoda
3f77c1584c MDL-20697 removing duplicate error string, fixing get_site() which is now using exceptions 2009-11-01 09:10:09 +00:00
samhemelryk
d9cb06dc0e course MDL-19794 Replaced deprecated functions, added set_url calls and boilerplates 2009-09-25 05:24:13 +00:00
samhemelryk
0a122046bc course MDL-19794 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants 2009-09-03 08:47:24 +00:00
nicolasconnault
b453120768 MDL-19794 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:40:19 +00:00
nicolasconnault
e6db30260f MDL-19794 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:58:26 +00:00
nicolasconnault
7b1f2c829f MDL-19756 Renamed moodle_select to html_select for better API consistency 2009-08-10 08:38:45 +00:00
nicolasconnault
98b369f800 MDL-19794 Converted print_box* to $OUTPUT->box* 2009-08-10 04:53:59 +00:00
nicolasconnault
82fcab32c1 MDL-19794 Converted calls to popup_form() 2009-08-10 03:35:14 +00:00
nicolasconnault
64e12bb710 MDL-19794 Converting calls to popup_form() 2009-08-08 09:31:01 +00:00
nicolasconnault
d880e0f5e2 MDL-19794 Converted all print_footer() calls 2009-08-06 14:23:49 +00:00
nicolasconnault
7c5286cd85 MDL-19794 Migrated calls to print_heading 2009-08-06 08:15:43 +00:00
tjhunt
5048e0349c course MDL-19794: Fix initialisation order problems on course/index.php. 2009-07-28 03:03:35 +00:00
tjhunt
ebff477995 MDL-19882 Add missing require_login-s before require_capability. 2009-07-20 08:57:18 +00:00
tjhunt
a8ecfa4d5b MDL-19077: Fix some initialisation order issues on the course/category management pages 2009-07-20 03:28:50 +00:00
tjhunt
1fb3d044fd Re-order the code, so we process the actions before we do any output. That is the right order anyway, and avoids the problem where require_capability after output is started leads to an exception being thrown. 2009-07-04 14:23:49 +00:00
tjhunt
6b608f8f50 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:53:31 +00:00
skodak
a8d6ef8c6c MDL-18293 $DB->somethiong is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:16:20 +00:00
tjhunt
f474a4e583 blocks: MDL-19010 Fix further blocks-related breakage, including removing all references to blocks_insance_old outside blocklib.php 2009-05-07 08:55:10 +00:00
tjhunt
830dd6e9cd moodle_page: MDL-12212 reimplement user_is_editing, deprecate isediting 2009-05-06 08:59:29 +00:00
tjhunt
7a9d505bb9 category paths: MDL-18897 call fix_course_sortorder eveywhere we insert a category to set category.path and .depth 2009-04-20 05:59:11 +00:00
jerome
a3a1708f63 category MDL-18876 replace error notice by exception, move success notice into index.php 2009-04-16 07:48:34 +00:00
skodak
90ee78e21c MDL-18293 removing unused error strings (now replaced by exceptions) 2009-02-17 16:33:32 +00:00
skodak
973d2660e6 MDL-16613 sesskey cleanup 2009-01-02 10:51:26 +00:00
tjhunt
2f37e1083b course categories: fix typo introduced when fixing MDL-10801 2008-12-12 06:19:01 +00:00
tjhunt
04c5310674 course search: MDL-10801 Search terms were not being highlighted consistently in the results. 2008-12-11 10:47:48 +00:00
tjhunt
92f008465c admin tree: MDL-10047 and MDL-13104 weird things happen when you turn editing on and off.
That was becuase not enough information was being passed in for the blocks editing controls to construct the right URL to reload the page.

It is also now possible for admin external pages to add some UI next to the turn blocks editing on/off button. For example, when you are editing the list of course catgories, the turn editing off button is now in the right place.
2008-12-11 09:21:41 +00:00
skodak
d02bcc3c24 MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557 - not sure which one ;-) fixed DML syntax 2008-12-09 23:55:47 +00:00
tjhunt
8a1b1c328d course categories: MDL-17502 when deleting a category and its contents, check moodle/course:delete capability.
* Note: this would never lead to problems with default role definions.
* Also ended up mostly rewriting delete_category_form to simplify the messages that are displayed.
* New helper function require_all_capabilities, a bit like require_any_capability.
2008-12-08 07:28:19 +00:00
tjhunt
77eddcd527 course request: MDL-9854 major cleanup to the course request code.
* Rewrite all the forms to use formslib and improve usability.
* Put the place where admins need to go to process approvals in the admin menu.
* Show the request course/pending requests button on the page for the category that requested courses get added to.
2008-12-05 08:56:54 +00:00
tjhunt
8ed5dd63ee 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.
2008-12-04 08:53:10 +00:00
dongsheng
9b34dc6e75 "MDL-14129, fix hardcoded print_error" 2008-09-25 02:09:49 +00:00
skodak
0cbe81112a MDL-14580 rewritten course sorting algorithms 2008-06-16 14:25:53 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak
a5d424df7c MDL-14679 converted some get/set_field() 2008-06-02 21:39:23 +00:00
skodak
e4907498da MDL-14679 converted some course related code 2008-06-01 18:17:38 +00:00
thepurpleblob
ab7ac6ac55 MDL-14916:
Tidy up notices

Merged from STABLE_19
2008-05-21 12:47:35 +00:00
skodak
e2b347e933 MDL-14378 When deleting course category deal with everything that depends on its context; merged from MOODLE_19_STABLE 2008-05-13 21:52:38 +00:00
dongsheng
ba6018a902 "MDL-14129, fix print_error call under course/, see tracker" 2008-05-07 06:02:51 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
poltawski
8bbcf67bce MDL-12888 - remove require to form no longer used
merged from MOODLE_19_STABLE
2008-01-09 10:57:45 +00:00
poltawski
435f3044df MDL-12873 - show an add course button when editing at the top level (which
is the default view when you click 'Add/Edit Courses')

merged from MOODLE_19_STABLE
2008-01-08 12:00:11 +00:00
nfreear
317d5ddcb3 Fix for reopened bug MDL-7878, "Link identification and skipping" - includes site and course index.php. 2007-10-22 09:21:11 +00:00
nicolasconnault
86830be66e MDL-11543 Temporary solution originally proposed by Martin 2007-10-09 12:53:24 +00:00
martinlanghoff
853a093ec5 course/index: remove call to rebuild_context_rel()
Very last caller to rebuild_context_rel() and any XX_context_rel()
function. move_category() already takes care of calling
context_moved(), which does the required context.path maintenance.

Addresses MDL-11219
2007-09-19 07:53:17 +00:00