skodak
5c10879f55
MDL-11814 use system context for pinned blocks; merged from MOODLE_19_STABLE
2007-12-20 16:25:49 +00:00
moodler
1f967c82ff
Merged MDL-7493 further fix: strip_tags from title strings because the titles may have HTML in them.
2007-12-20 01:51:33 +00:00
skodak
220a90c5a1
MDL-11561 admin tree improvements and bugfixing
2007-12-19 17:35:20 +00:00
scyrma
8e4636c26f
Fix a bug passed on after commit of by http://lists.moodle.org/arc/commits/2007-12/msg00352.html
...
There shouldn't be html tags in this place.
2007-12-19 05:58:27 +00:00
nfreear
c076f4beef
Fixes reopened MDL-7493 "Make sure standard themes are visible under "Windows High Contrast Black" mode" - foreground show/hide block icon/ALT text switched with Javscript.
2007-12-18 17:18:19 +00:00
skodak
fe362e1aca
MDL-12597 fixed short php bugs; merged from MOODLE_19_STABLE
2007-12-16 14:14:17 +00:00
scyrma
8d7924ba0b
prevent some notices, cleaner code.
2007-12-11 05:10:10 +00:00
tjhunt
9ce2fe53cb
MDL-12501 - Logic for including 'Grades' link in admin block is different for the logic in grade/report/index.php. Merged from MOODLE_19_STABLE.
2007-12-07 16:58:07 +00:00
poltawski
f9192b6538
MDL-12464 - if a glossary is deleted, it causes some breakage in the
...
random glossary block
Merged from MOODLE_19_STABLE
2007-12-06 15:43:46 +00:00
toyomoyo
4affe9486b
MDL-12352, block/search fails to install on postgres
2007-12-06 07:10:29 +00:00
poltawski
ac17355524
MDL-12415 - When we have more than one category/lots of courses the course
...
block shows two links next to search other (Search Courses/All courses)
which point to the same place....
The all courses link is able to be switched off and the search courses is not,
for this reason i've gone for removing the search courses link.
Merged from MOODLE_19_STABLE
2007-12-04 12:57:02 +00:00
martinlanghoff
e88370a6a3
blocks/online_users: Remove SQL "id,id" which causes errors on Oracle - MDL-12425
...
Credit for the fix goes to Dennis Rochford <Dennis.Rochford@usq.edu.au>
2007-12-04 06:25:56 +00:00
toyomoyo
3b2274ce5f
MDL-12352, block/search fails to install on postgres
2007-11-27 05:43:27 +00:00
scyrma
d417533252
Fix for par of the missing strings, as reported in MDL-12294
2007-11-26 04:10:08 +00:00
toyomoyo
094d92a4ac
turn this block off when $CFG->messaging is off
2007-11-22 01:17:03 +00:00
diml
036989246e
added default values for datetime fields
2007-11-20 23:37:15 +00:00
toyomoyo
b486ef1ae3
MDL-8270, full block backup/restore routine with code
2007-11-15 05:00:44 +00:00
tjhunt
43457dc87c
MDL-12066 - Links in the HTML block are not recoded on backup and restore.
...
This is messy because the links are hidden in the configdata column, which is serialized and base64encoded. So we have to untangle that, then ask the block whether there are any bits of $config that need to be fixed, then re-encode it before backup up. And reverse that on restore. It needs to remain base64 encoded in the backup file, so that the file format is backwards compatible.
I disucssed this with Eloy before doing it.
Merged from MOODLE_19_STABLE.
2007-11-14 17:03:32 +00:00
tjhunt
e5a3a5176d
MDL-11952 - In the course admin block, if the user has moodle/question:managecategory, but no other capabilites, the questions link should go to the manage categories page. Merged from MOODLE_19_STABLE.
2007-10-29 16:58:32 +00:00
poltawski
e6262fcd0d
MDL-11937 - save 100 database queries in the case of the admin bookmarks block
...
without bookmarks on non-admin page
Merged from MOODLE_19_STABLE
2007-10-28 23:06:39 +00:00
skodak
a559f6306e
MDL-11563 replaced hardcoded permission check from admin_tree_block
2007-10-28 22:35:00 +00:00
arborrow
948acd80e2
MDL-11869 - javascript syntax error was preventing the call to the calc function. Adding in the double slashes around CDATA resolves the problem. (merging into HEAD)
2007-10-22 20:39:29 +00:00
poltawski
83f8b304e2
MDL-11766 Flickr/Youtube blocks don't respect http proxy vars
...
Merged from MOODLE_19_STABLE
2007-10-19 15:09:12 +00:00
toyomoyo
24028abc95
fixing a warning
2007-10-16 04:33:46 +00:00
toyomoyo
02d5eba3f8
MDL-9059, admins can't see group events in calendar
2007-10-16 03:47:41 +00:00
nfreear
17a6161d20
Follow up for MDL-11430, Flickr & Youtube tag blocks should use list markup - Fix styles.
2007-10-15 16:59:17 +00:00
nfreear
4213137651
Fixes MDL-11430, Flickr & Youtube tag blocks should use list markup.
2007-10-15 12:31:39 +00:00
nfreear
53420696a6
Preparation for MDL-11430 - whitespace.
2007-10-15 12:26:54 +00:00
diml
84257f3fe1
changing access resolution for buttons labels
2007-10-07 19:44:59 +00:00
diml
f651fb3980
unconsistent file
2007-10-07 19:44:18 +00:00
diml
a76b196392
string nl translations for search block
2007-10-07 19:40:47 +00:00
diml
351708dcbb
string fr translations for search block
2007-10-07 19:40:15 +00:00
diml
9424e7e0b5
string en translations for search block
2007-10-07 19:39:42 +00:00
skodak
777b7ed2d1
adding caps for new gradebook settings into has_admin_caps() perf hack in block_admin_tree
2007-10-02 15:33:09 +00:00
toyomoyo
165088f687
change participants of frontpage course to display all users, if current user has capability MDL-11143
2007-10-02 03:37:30 +00:00
nicolasconnault
34d6a78987
MDL-11406 Removed lang files from block folder, and put them in en_utf8 and fr_utf8
2007-09-28 08:46:25 +00:00
skodak
42626376f3
MDL-11442 removed last instances of global $course
2007-09-27 08:18:28 +00:00
moodler
5dec234de7
Allow the Admin tree block to be displayed on the My Moodle page.
...
Reported in NZ workshop. MDL-11450
2007-09-26 02:33:43 +00:00
stronk7
28271c7205
Second pass. Some more default comments are out. MDL-11385
2007-09-24 22:10:13 +00:00
martinlanghoff
9a55125ef6
blocks/admin_tree: applicable_formats() is called as a class method
...
Can't find it documented anywhere, but applicable_formats() is only
ever called as a class method, so it cannot say $this. Instead, say
block_admin_tree::has_admin_caps().
2007-09-19 07:47:38 +00:00
martinlanghoff
0146bd4190
blocks/admin_tree: Show the block if some admin privs present...
...
Dan Poltawski said:
> Previously users with different permissions could have granular
> access to the admin menu for the items they have access to, so
> limiting to only users with moodle/site:config would break that.
> Although I agree that that menu is slowww to render and needs
> fixing. Perhaps permissions for the various elements could be
> gathered and checked first
This commit addresses the problem checking for all the caps that are
mentioned by code in /admin (according to grep, at least). Some light
testing with the "moodle/user:create" seems to work properly.
This burdens us with maintaining the list in has_admin_caps() -- less
than ideal, but easier than rewriting /admin.
2007-09-19 07:46:24 +00:00
martinlanghoff
84a34f6ed3
blocks/admin_tree: exit early for non-admins
...
Saves >10DBq and 18 includes at the homepage for all nonadmin users.
For non admin users, this makes the homepage _much_ more lightweight.
Before: inc 101 DBq 51 time 1.2s
After: inc 76 DBq 36 time 0.2s
So this commit shaves 1 full second for the non-logged-in homepage.
Still pretty bad on the includes, but shaved a good 25 files and 15 DBqs.
2007-09-19 07:22:24 +00:00
skodak
18ff5a61b6
MDL-11230 fixing wrong include for tags library - always use require_once() instead of include() when dealing with library files!
2007-09-16 21:43:08 +00:00
skodak
ffc536af8e
MDL-7380 converted various places to use new groups API
2007-09-08 20:53:05 +00:00
skodak
d9bf198292
MDL-10939 converting news_item block too
2007-09-07 09:43:14 +00:00
nfreear
77d574a8c5
SQL: Added 't.rawname' to GROUP BY clause following warning
2007-09-06 11:30:53 +00:00
toyomoyo
15e3eb6053
merged fix for MDL-9613, spliting the queries into 2 for site/course block respectively
2007-09-06 06:25:40 +00:00
poltawski
325744cb14
MDL-9851 - RSS block links previously used to open in new window. Restoring this
...
behaviour. Had to tweak the cleaning to ensure the JS hack for XHTML complaint new
window gets through. Merged from MOODLE_18_STABLE
2007-09-03 10:26:44 +00:00
moodler
cdcaa9f2d3
This block can be anywhere
2007-08-31 04:58:03 +00:00
toyomoyo
81c07f5ebf
admins should see all tags
2007-08-31 02:17:42 +00:00