SettingDisableactions.php 708 B

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