View | Details | Raw Unified | Return to bug 3922 | Differences between
and this patch

Collapse All | Expand All

(-)plugins/blocks/notification/NotificationBlockPlugin.inc.php (-19 lines)
 Lines 52-67    Link Here 
52
	}
52
	}
53
53
54
	/**
54
	/**
55
	 * Get the block context. Overrides parent so that the plugin will be
56
	 * displayed during install.
57
	 * @return int
58
	 */
59
	function getBlockContext() {
60
		if (!Config::getVar('general', 'installed')) return BLOCK_CONTEXT_RIGHT_SIDEBAR;
61
		return parent::getBlockContext();
62
	}
63
64
	/**
65
	 * Get the supported contexts (e.g. BLOCK_CONTEXT_...) for this block.
55
	 * Get the supported contexts (e.g. BLOCK_CONTEXT_...) for this block.
66
	 * @return array
56
	 * @return array
67
	 */
57
	 */
 Lines 70-84    Link Here 
70
	}
60
	}
71
61
72
	/**
62
	/**
73
	 * Determine the plugin sequence. Overrides parent so that
74
	 * the plugin will be displayed during install.
75
	 */
76
	function getSeq() {
77
		if (!Config::getVar('general', 'installed')) return 1;
78
		return parent::getSeq();
79
	}
80
81
	/**
82
	 * Get the name of this plugin. The name must be unique within
63
	 * Get the name of this plugin. The name must be unique within
83
	 * its category.
64
	 * its category.
84
	 * @return String name of plugin
65
	 * @return String name of plugin

Return to bug 3922