MDL-29866 page setup improvements
authorPetr Skoda <commits@skodak.org>
Fri, 21 Oct 2011 14:35:19 +0000 (16:35 +0200)
committerPetr Skoda <commits@skodak.org>
Fri, 21 Oct 2011 14:35:19 +0000 (16:35 +0200)
commitf0f8f9a796daae3d5e9d30a5ebbd2ab75242e423
treeea2d24cba1ef63cfab8500967d557736c81650fe
parentd21149699cc45972fe05d6e3c47f5f80607e649b
MDL-29866 page setup improvements

incorrect PAGE init - it should be done at the very end; redirect() should not use OUTPUT before PAGE init; SITEID should be deprecated in favour of $SITE->id (this is going to cause troubles in tenant switching in CLI, cron and tests); missing "global $SITE"'; minor coding style issues; PHPDocs; it also helps with merging/testing of multitenant patch
lib/setup.php
lib/setuplib.php
lib/weblib.php