#4083 Dashboard: hiding blocks from dashboard interface can fail

skala
Laurent Opprecht 13 years ago
parent 209edc91e1
commit 24bdc8a0a9
  1. 5
      main/dashboard/block.class.php
  2. 2
      plugin/dashboard/block_daily/block_daily.class.php

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

@ -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();

Loading…
Cancel
Save