]> git.mjollnir.org Git - moodle.git/commit
SWEEPING CLEANUP
authormoodler <moodler>
Mon, 14 Aug 2006 05:55:40 +0000 (05:55 +0000)
committermoodler <moodler>
Mon, 14 Aug 2006 05:55:40 +0000 (05:55 +0000)
commit0468976c9a13b98e2ef5c6353804acff173869a5
tree71015e07d2cb21fe3781179de7f5e8df5fc4525c
parent6e7805628ea435f800594edb7d5e8cc52224060b
SWEEPING CLEANUP

The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
76 files changed:
admin/config.php
admin/configure.php
admin/index.php
admin/roles/assign.php
admin/roles/manage.php
admin/user.php
admin/users.php
blocks/admin/block_admin.php
blocks/moodleblock.class.php
blocks/participants/block_participants.php
blog/edit.php
blog/index.php
blog/lib.php
blog/preferences.php
blog/tags.html
blog/tags.php
course/category.php
course/edit.php
course/group.php
course/groups.php
course/index.php
course/lib.php
course/mod.php
course/scales.php
lib/accesslib.php
lib/moodlelib.php
mod/assignment/lib.php
mod/assignment/type/online/assignment.class.php
mod/assignment/type/uploadsingle/assignment.class.php
mod/chat/gui_header_js/index.php
mod/chat/lib.php
mod/chat/report.php
mod/chat/view.php
mod/choice/lib.php
mod/choice/report.php
mod/choice/view.php
mod/data/comment.php
mod/data/field.php
mod/data/import.php
mod/data/lib.php
mod/data/tabs.php
mod/data/templates.php
mod/data/view.php
mod/exercise/assessments.php
mod/exercise/view.php
mod/forum/discuss.php
mod/forum/index.php
mod/forum/lib.php
mod/forum/post.html
mod/forum/post.php
mod/forum/rate.php
mod/forum/report.php
mod/forum/search.php
mod/forum/subscribe.php
mod/forum/subscribers.php
mod/forum/user.php
mod/forum/view.php
mod/glossary/approve.php
mod/glossary/comment.php
mod/glossary/comments.php
mod/glossary/deleteentry.php
mod/glossary/edit.php
mod/glossary/editcategories.php
mod/glossary/export.php
mod/glossary/exportentry.php
mod/glossary/exportfile.php
mod/glossary/import.php
mod/glossary/lib.php
mod/glossary/report.php
mod/glossary/tabs.html
mod/glossary/view.php
mod/survey/report.php
mod/survey/save.php
mod/survey/view.php
user/edit.php
user/index.php