10a5b05ebSAndreas Gohr<?php 20a5b05ebSAndreas Gohr 30a5b05ebSAndreas Gohrnamespace dokuwiki\plugin\config\core\Setting; 40a5b05ebSAndreas Gohr 50a5b05ebSAndreas Gohr/** 60a5b05ebSAndreas Gohr * Class setting_disableactions 70a5b05ebSAndreas Gohr */ 88c7c53b0SAndreas Gohrclass SettingDisableactions extends SettingMulticheckbox 98c7c53b0SAndreas Gohr{ 100a5b05ebSAndreas Gohr /** @inheritdoc */ 11*d868eb89SAndreas Gohr public function html(\admin_plugin_config $plugin, $echo = false) 12*d868eb89SAndreas Gohr { 130a5b05ebSAndreas Gohr global $lang; 140a5b05ebSAndreas Gohr 150a5b05ebSAndreas Gohr // make some language adjustments (there must be a better way) 160a5b05ebSAndreas Gohr // transfer some DokuWiki language strings to the plugin 170a5b05ebSAndreas Gohr $plugin->addLang($this->key . '_revisions', $lang['btn_revs']); 180a5b05ebSAndreas Gohr foreach ($this->choices as $choice) { 190a5b05ebSAndreas Gohr if (isset($lang['btn_' . $choice])) $plugin->addLang($this->key . '_' . $choice, $lang['btn_' . $choice]); 200a5b05ebSAndreas Gohr } 210a5b05ebSAndreas Gohr 220a5b05ebSAndreas Gohr return parent::html($plugin, $echo); 230a5b05ebSAndreas Gohr } 240a5b05ebSAndreas Gohr} 25