[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/plugins/config/core/Setting/ -> SettingDisableactions.php (source)

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