]> git.mjollnir.org Git - moodle.git/commitdiff
blocks editing ui: MDL-19398 Remove stupid pass by reference.
authortjhunt <tjhunt>
Wed, 15 Jul 2009 08:55:52 +0000 (08:55 +0000)
committertjhunt <tjhunt>
Wed, 15 Jul 2009 08:55:52 +0000 (08:55 +0000)
Was causing errors when this method was called via block_method_result

blocks/moodleblock.class.php

index 60f4ca6a56fbc4fedb5cb76311aaa659978b1dfd..58c7125b44548749858b38c723168f48dd72db61 100644 (file)
@@ -646,7 +646,7 @@ class block_base {
      * @return boolean
      * @todo finish documenting this function
      */
-    function user_can_addto(&$page) {
+    function user_can_addto($page) {
         return true;
     }