@@ -7,8 +7,12 @@ discard block |
||
| 7 | 7 | * @author Marius Rieder <[email protected]> |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -if(!defined('DOKU_INC')) die(); |
|
| 11 | -if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); |
|
| 10 | +if(!defined('DOKU_INC')) { |
|
| 11 | + die(); |
|
| 12 | +} |
|
| 13 | +if(!defined('DOKU_PLUGIN')) { |
|
| 14 | + define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); |
|
| 15 | +} |
|
| 12 | 16 | require_once(DOKU_PLUGIN.'action.php'); |
| 13 | 17 | |
| 14 | 18 | class action_plugin_webmaster extends DokuWiki_Action_Plugin { |
@@ -18,7 +22,9 @@ discard block |
||
| 18 | 22 | } |
| 19 | 23 | |
| 20 | 24 | function addVerifyHeaders(&$event, $param) { |
| 21 | - if(empty($event->data)||empty($event->data['meta'])) return; |
|
| 25 | + if(empty($event->data)||empty($event->data['meta'])) { |
|
| 26 | + return; |
|
| 27 | + } |
|
| 22 | 28 | |
| 23 | 29 | /* Google */ |
| 24 | 30 | $g = $this->getConf('webmaster_google'); |