@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | if (!defined('DOKU_INC')) die(); |
| 22 | 22 | |
| 23 | -if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); |
|
| 23 | +if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC.'lib/plugins/'); |
|
| 24 | 24 | require_once DOKU_PLUGIN.'action.php'; |
| 25 | 25 | |
| 26 | 26 | class action_plugin_snow extends DokuWiki_Action_Plugin { |
@@ -30,8 +30,8 @@ discard block |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | public function handle_tpl_metaheader_output(Doku_Event $event, $param) { |
| 33 | - if($this->getConf('enabled')){ |
|
| 34 | - $event->data["script"][] = array ( |
|
| 33 | + if ($this->getConf('enabled')) { |
|
| 34 | + $event->data["script"][] = array( |
|
| 35 | 35 | "type" => "text/javascript", |
| 36 | 36 | "src" => DOKU_BASE."lib/plugins/snow/snowstorm-min.js", |
| 37 | 37 | "_data" => "", |
@@ -18,9 +18,13 @@ |
||
| 18 | 18 | * |
| 19 | 19 | * @author Mark C. Prins <[email protected]> |
| 20 | 20 | */ |
| 21 | -if (!defined('DOKU_INC')) die(); |
|
| 21 | +if (!defined('DOKU_INC')) { |
|
| 22 | + die(); |
|
| 23 | +} |
|
| 22 | 24 | |
| 23 | -if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); |
|
| 25 | +if (!defined('DOKU_PLUGIN')) { |
|
| 26 | + define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); |
|
| 27 | +} |
|
| 24 | 28 | require_once DOKU_PLUGIN.'action.php'; |
| 25 | 29 | |
| 26 | 30 | class action_plugin_snow extends DokuWiki_Action_Plugin { |
@@ -18,4 +18,4 @@ |
||
| 18 | 18 | * |
| 19 | 19 | * @author Mark C. Prins <[email protected]> |
| 20 | 20 | */ |
| 21 | -$meta['enabled'] = array ('onoff'); |
|
| 21 | +$meta['enabled'] = array('onoff'); |
|
@@ -19,4 +19,4 @@ |
||
| 19 | 19 | * @author Mark C. Prins <[email protected]> |
| 20 | 20 | * @author Serenity87HUN <[email protected]> |
| 21 | 21 | */ |
| 22 | -$lang['enabled'] = 'Havazás be- vagy kikapcsolása'; |
|
| 22 | +$lang['enabled'] = 'Havazás be- vagy kikapcsolása'; |
|
@@ -19,4 +19,4 @@ |
||
| 19 | 19 | * @author Mark C. Prins <[email protected]> |
| 20 | 20 | * @author alhajr <[email protected]> |
| 21 | 21 | */ |
| 22 | -$lang['enabled'] = 'تمكين أو تعطيل الثلج'; |
|
| 22 | +$lang['enabled'] = 'تمكين أو تعطيل الثلج'; |
|
@@ -19,4 +19,4 @@ |
||
| 19 | 19 | * @author Mark C. Prins <[email protected]> |
| 20 | 20 | * @author Robert Bogenschneider <[email protected]> |
| 21 | 21 | */ |
| 22 | -$lang['enabled'] = 'En- aŭ elŝalti neĝon'; |
|
| 22 | +$lang['enabled'] = 'En- aŭ elŝalti neĝon'; |
|
@@ -19,4 +19,4 @@ |
||
| 19 | 19 | * @author Mark C. Prins <[email protected]> |
| 20 | 20 | * @author João Lopes <[email protected]> |
| 21 | 21 | */ |
| 22 | -$lang['enabled'] = 'Activar ou desactivar a neve'; |
|
| 22 | +$lang['enabled'] = 'Activar ou desactivar a neve'; |
|
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * Simple test to make sure the plugin.info.txt is in correct format |
| 30 | 30 | */ |
| 31 | 31 | public function test_plugininfo() { |
| 32 | - $file = __DIR__ . '/../plugin.info.txt'; |
|
| 32 | + $file = __DIR__.'/../plugin.info.txt'; |
|
| 33 | 33 | $this->assertFileExists($file); |
| 34 | 34 | |
| 35 | 35 | $info = confToHash($file); |