Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function html(\admin_plugin_config $plugin, $echo = false) { |
||
12 | global $lang; |
||
13 | |||
14 | // make some language adjustments (there must be a better way) |
||
15 | // transfer some DokuWiki language strings to the plugin |
||
16 | $plugin->addLang($this->key . '_revisions', $lang['btn_revs']); |
||
17 | foreach($this->choices as $choice) { |
||
18 | if(isset($lang['btn_' . $choice])) $plugin->addLang($this->key . '_' . $choice, $lang['btn_' . $choice]); |
||
19 | } |
||
20 | |||
21 | return parent::html($plugin, $echo); |
||
22 | } |
||
23 | } |
||
24 |