1<?php 2 3namespace dokuwiki\plugin\config\core\Setting; 4 5/** 6 * Class setting_disableactions 7 */ 8class SettingDisableactions extends SettingMulticheckbox 9{ 10 11 /** @inheritdoc */ 12 public function html(\admin_plugin_config $plugin, $echo = false) 13 { 14 global $lang; 15 16 // make some language adjustments (there must be a better way) 17 // transfer some DokuWiki language strings to the plugin 18 $plugin->addLang($this->key . '_revisions', $lang['btn_revs']); 19 foreach($this->choices as $choice) { 20 if(isset($lang['btn_' . $choice])) $plugin->addLang($this->key . '_' . $choice, $lang['btn_' . $choice]); 21 } 22 23 return parent::html($plugin, $echo); 24 } 25} 26