mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-53738 feedback: enable mod and block by default
This commit is contained in:
parent
6bd3ab0717
commit
aeeeb78847
16 changed files with 4 additions and 280 deletions
|
@ -22,11 +22,6 @@
|
|||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
if (is_file($CFG->dirroot.'/mod/feedback/lib.php')) {
|
||||
require_once($CFG->dirroot.'/mod/feedback/lib.php');
|
||||
define('FEEDBACK_BLOCK_LIB_IS_OK', true);
|
||||
}
|
||||
|
||||
class block_feedback extends block_list {
|
||||
|
||||
function init() {
|
||||
|
@ -49,11 +44,6 @@ class block_feedback extends block_list {
|
|||
$this->content->icons = array();
|
||||
$this->content->footer = '';
|
||||
|
||||
if (!defined('FEEDBACK_BLOCK_LIB_IS_OK')) {
|
||||
$this->content->items = array(get_string('missing_feedback_module', 'block_feedback'));
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
$courseid = $this->page->course->id;
|
||||
if ($courseid <= 0) {
|
||||
$courseid = SITEID;
|
||||
|
|
|
@ -25,8 +25,5 @@
|
|||
function xmldb_block_feedback_install() {
|
||||
global $DB;
|
||||
|
||||
/// Disable this block by default (because Feedback is not technically part of 2.0)
|
||||
$DB->set_field('block', 'visible', 0, array('name'=>'feedback'));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -24,5 +24,4 @@
|
|||
|
||||
$string['feedback'] = 'Feedback';
|
||||
$string['feedback:addinstance'] = 'Add a new feedback block';
|
||||
$string['missing_feedback_module'] = 'This blocks relies on the Feedback activity module, but that module is not present!';
|
||||
$string['pluginname'] = 'Feedback';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue