MDL-30340 blocks - fix/restrict frontpage dark magic application
authorMartin Dougiamas <martin@moodle.com>
Mon, 5 Dec 2011 09:28:54 +0000 (10:28 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 5 Dec 2011 09:28:54 +0000 (10:28 +0100)
commit192a3380f15ef52dd58a1bc848b6f5e93a369b74
treeb87577d655bd9e6576e577c0c5f5a289f4438d60
parent49ae1fdceaa49964aeec0a31f898c0e30a3e6eff
MDL-30340 blocks - fix/restrict frontpage dark magic application

It seems that there are some overlapping constants in the blocks
subsystem that were causing some code, initially planned only
to frontpage, to be executed in other contexts. This commit moves
the bui_editingatfrontpage condition as root condition.
lib/blocklib.php