Changed default back to 'messages'

Switching to online would have required a change of Tag's plugin helper
code.
This commit is contained in:
Simon DELAGE 2015-06-13 02:45:07 +02:00
parent b1d0adcff4
commit 712f2333f1
3 changed files with 5 additions and 4 deletions

View file

@ -24,8 +24,8 @@ class action_plugin_tagalerts extends DokuWiki_Action_Plugin{
global $ID;
global $conf;
$tags = plugin_load('helper', 'tag');
if(is_null($tags)) {
$tagplugin = plugin_load('helper', 'tag');
if(is_null($tagplugin)) {
msg($this->getLang('tag_required'), -1);
return false;
}
@ -78,7 +78,7 @@ class action_plugin_tagalerts extends DokuWiki_Action_Plugin{
// Register the plugin conf file in ConfManager Plugin
public function addConfigFile(Doku_Event $event, $params) {
if (class_exists('ConfigManagerTwoLine')) {
$config = new ConfigManagerTwoLine('Tag Alerts', 'Description of my plugin', DOKU_PLUGIN . 'tagalerts/conf/tagalerts.conf');
$config = new ConfigManagerTwoLine('Tag Alerts', $this->getLang('description'), DOKU_PLUGIN . 'tagalerts/conf/tagalerts.conf');
$event->data[] = $config;
}
}

View file

@ -6,7 +6,7 @@
* @license: CC Attribution-Share Alike 3.0 Unported <http://creativecommons.org/licenses/by-sa/3.0/>
*/
$conf['inline'] = '1';
$conf['inline'] = '0';
$conf['error'] = ''; //comma separated list of tags for wich a "tag error" should be thrown
$conf['info'] = ''; //comma separated list of tags for wich a "tag info" should be thrown
$conf['success'] = ''; //comma separated list of tags for wich a "tag success" should be thrown

View file

@ -6,5 +6,6 @@
* @license: CC Attribution-Share Alike 3.0 Unported <http://creativecommons.org/licenses/by-sa/3.0/>
*/
$lang['description'] = 'This plugin is made to show alerts when some specified tags are detected. Use this file to define tags\' specific messages (one tag and one message per line).';
$lang['tagalerts'] = 'This page has been marked as ';
$lang['tag_required'] = 'The Tag plugin is required for Tag Alerts to be of any use (https://www.dokuwiki.org/plugin:tag).';