Browse Source

#4083 Dashboard: hiding blocks from dashboard interface can fail

Laurent Opprecht 12 years ago
parent
commit
24bdc8a0a9

+ 5 - 0
main/dashboard/block.class.php

@@ -29,6 +29,11 @@ class Block {
      */
     public function display_large() {}
     
+    public function get_block_path(){              
+        $result = get_class($this);
+        return $result;
+    }
+    
 }
 
 ?>

+ 1 - 1
plugin/dashboard/block_daily/block_daily.class.php

@@ -33,7 +33,7 @@ class BlockDaily extends Block {
 	 */
     public function __construct ($user_id) {    	
     	$this->user_id 		= $user_id;
-    	$this->path 		= 'block_course';				
+    	$this->path 		= 'block_daily';				
 		if ($this->is_block_visible_for_user($user_id)) {
 			/*if (api_is_platform_admin()) {
 				$this->courses = CourseManager::get_real_course_list();