Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing notices, I should 've done grep "BLOCK_TYPE_NUKE" earlier.

  • Loading branch information...
commit a8088232b14742670a50d97ddec1c7511de7f6a0 1 parent ff1b96e
defacer authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 blocks/moodleblock.class.php
View
7 blocks/moodleblock.class.php
@@ -1,8 +1,7 @@
<?php // $Id$
/**
- * This file contains the parent class for moodle blocks, block_base,
- * as well as the block_nuke subclass.
+ * This file contains the parent class for moodle blocks, block_base.
*
* @author Jon Papaioannou
* @version $Id$
@@ -43,7 +42,7 @@ class block_base {
var $title = NULL;
/**
- * The type of content that this block creates. Currently support options - BLOCK_TYPE_LIST, BLOCK_TYPE_TEXT, BLOCK_TYPE_NUKE
+ * The type of content that this block creates. Currently support options - BLOCK_TYPE_LIST, BLOCK_TYPE_TEXT
* @var int $content_type
*/
var $content_type = BLOCK_TYPE_TEXT;
@@ -398,7 +397,7 @@ function _self_test() {
$errors[] = 'title_not_set';
$correct = false;
}
- if (!in_array($this->get_content_type(), array(BLOCK_TYPE_LIST, BLOCK_TYPE_TEXT, BLOCK_TYPE_NUKE))) {
+ if (!in_array($this->get_content_type(), array(BLOCK_TYPE_LIST, BLOCK_TYPE_TEXT))) {
$errors[] = 'invalid_content_type';
$correct = false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.