Commit Graph

81 Commits

Author SHA1 Message Date
nicolasconnault cda9c83d16 MDL-19790 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:39:39 +00:00
tjhunt e92c286c20 block contexts: MDL-19098 every block should have a context
even non-course and sticky blocks.

The parent context is block_instances.parentcontextid.

The block context should be used for checking permissions directly
related to the block, like moodle/block:view or moodle/site:manageblocks.

However, if the block is displaying information about the current page,
for example the participants block showing who 'here', then it may be
better to use the context of the page where the bloack is appearing -
in other words $this->page->context - to check permissions about the
user's ability to see participants here.

Or, if the block is displaying something stronly related to courses,
for example, a course meny block, the block should probably use the
context for $this->page->course to check permissions.
2009-07-13 08:37:34 +00:00
tjhunt 6b608f8f50 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:53:31 +00:00
tjhunt f4d76b9cdf blocklib: MDL-19010 fix some minor problems with existing blocks. 2009-06-05 08:28:45 +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 cb6402296c blocklib: MDL-19010 remove no-longer-necessary global variable use from blocks 2009-05-06 09:28:26 +00:00
tjhunt 3179b0006a blocklib: MDL-19010 Fix blocks that were relying on ->instance in an unfortunate way 2009-05-06 09:15:33 +00:00
Francois Marier 6280ef3e58 Fix CVS-git drift (remove some files deleted in CVS) 2009-02-01 23:43:28 +00:00
jerome 59eaa9ac49 online user block MDL-15325 optimize the display of the message icon/link (instantiation out of a loop), merged from 1.9 2009-01-09 00:56:45 +00:00
jerome 593bebe099 online user block MDL-15325 Online Users Block didn't perform capability check when displaying messaging icon, merged from 19 2009-01-08 07:40:01 +00:00
skodak 283ebb7147 MDL-11984 blocks: new capability block/online_users:viewlist which may be used to restrict viewing of list of online users, if cap not allowed only number of users dispalyed, I hope this will be also faster because only one query used now (insetad of two); for BC reasons enabled by default in all legacy roles 2008-11-30 15:42:48 +00:00
skodak 775f811a66 MDL-16002 rewritten upgrade locking and better upgrade progress tracking; MDL-16070 Do not use $a[0] syntax in lang packs + various other upgrade improvements and fixes 2008-08-16 12:16:01 +00:00
Francois Marier 6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00
skodak b1f93b1512 MDL-15246 moving all remaining ddl function to adminlib, keeping old lib/ddllib.php only for BC withexisting code; fixed inline docs related to ddl 2008-06-15 10:32:50 +00:00
skodak f28f2d9022 MDL-14679 towards blocks conversion 2008-06-02 20:15:51 +00:00
skodak 219f652b91 MDL-14679 upgrade $DB conversion 2008-05-31 18:05:42 +00:00
moodler 433c242f1a Merged new block versions from 1.9 2008-03-03 11:43:32 +00:00
skodak dd97c32868 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 2008-01-24 20:33:50 +00:00
skodak 220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +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
skodak ffc536af8e MDL-7380 converted various places to use new groups API 2007-09-08 20:53:05 +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
skodak 1d68419596 MDL-10383 - deprecated groups_members_from_sql and friends - we do not need them anymore because we reverted to 1.7 style groups in 1.9 2007-08-15 19:28:11 +00:00
toyomoyo 9477c1ecca merged fix for MDL-9613, broken SQL in online user block 2007-07-09 02:54:35 +00:00
Martin Langhoff 08103c9364 cvsimport fixups 2007-07-07 14:18:30 +12:00
toyomoyo b0365fce35 merged fix for MDL-9613 2007-04-30 02:56:46 +00:00
toyomoyo a1f5b4ae03 merged fix for MLD-7544, hidden users show up on participants block 2007-04-23 03:06:01 +00:00
moodler 97e7e624f7 Merged MDL-6553 from 1.8 stable 2007-04-04 07:24:14 +00:00
skodak 440d164869 MDL-7861xhtml strict and css fixes in blocks 2007-01-09 23:45:24 +00:00
Martin Langhoff f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
stronk7 5d0fc5c33d Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:46:02 +00:00
stronk7 3aac1dc9a0 Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:39:10 +00:00
stronk7 d7a7184730 New upgrade.php file added for this module. MDL-7214 2006-10-26 16:33:49 +00:00
moodler 9d5210af22 Merged tidy-ups from stable 2006-10-23 07:46:57 +00:00
moodler 1ce1944e33 Merged fixes for guest display from stable 2006-10-20 05:16:12 +00:00
moodler b725019e3f Merged fix related to MDL-6020 2006-09-19 04:53:56 +00:00
moodler 71832a910b Fixed some typos 2006-09-14 06:54:54 +00:00
toyomoyo 174526f4f1 changed code to use the new user_lastaccess table instead of the log table 2006-09-12 07:38:46 +00:00
toyomoyo cc398c7262 adding caapabilities 2006-09-04 08:45:08 +00:00
vyshane 01199ea958 Updated to use new Roles System. Plus some fixes. 2006-08-16 08:54:07 +00:00
moodler 1a2ea6f488 Merged $course -> $COURSE fixes from 1.6 stable 2006-05-29 08:17:57 +00:00
tjhunt 450a0a7db7 Merge from stable branch: Convert tabs to spaces in files where there were only a few rogue tabs. 2006-05-17 16:47:44 +00:00
vyshane 3f763c86cf Fixed Bug #5057 - hidden teachers aren't completely hidden 2006-04-10 08:49:15 +00:00
nfreear 2bf0e5e2a9 Accessibility: added title to envelope link, replaced img width/height (OU-Bugz: 697,736) 2006-03-15 10:42:50 +00:00
nfreear 73bb9da7e5 Accessibility: added Alt text for envelope/message link (existing lang string); converted <div> to <ul>, inherit existing classes & styles. 2006-03-01 11:18:33 +00:00
toyomoyo 16ee05ad8f merged, limit of students displayed = 20 2006-01-04 05:22:53 +00:00
gustav_delius 9c22e022cb Now uses print_user_picture() instead of custom code 2005-09-29 14:26:25 +00:00
urs_hunkler 340c48485e I replaced the center and font tags in this sideblock with <div class="message">. 2005-08-03 11:07:13 +00:00
urs_hunkler e99e17fe69 I removed the inlinestyle for the userentry in the sideblock "online user" and added the class "listentry" to the div. The properties of th inline style are now defined in styles_layout.css and stylews_fonts.css. 2005-05-27 17:28:16 +00:00
moodler dd189d93ab Fixed messaging links in blocks 2005-04-21 11:34:34 +00:00