]> git.mjollnir.org Git - moodle.git/commit
Improved context handling
authorDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 18:11:35 +0000 (18:11 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 18:11:35 +0000 (18:11 +0000)
commitd895c6aaf56218336cdc358556a08f2ac8adc991
tree817864da9531982b62d68204de95cb1cdb7989db
parent8831ba80377e721873e16023e865c7dd2650ad24
Improved context handling

Getting a context from instance is very cheap and I can actually do it
just once when constructing the workshop API class. In the future, I
will get rid of all $PAGE->context which is actually meant for things
like blocks etc.
mod/workshop/allocation/manual/lib.php
mod/workshop/allocation/random/lib.php
mod/workshop/develtools.php
mod/workshop/locallib.php
mod/workshop/view.php