You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
861 B

  1. <?php
  2. if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/');
  3. if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
  4. require_once(DOKU_PLUGIN.'action.php');
  5. /**
  6. * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
  7. * @author Pierre Spring <pierre.spring@liip.ch>
  8. */
  9. class action_plugin_ckgedit_delete extends DokuWiki_Action_Plugin {
  10. function register(Doku_Event_Handler $controller) {
  11. $controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'ckgedit_delete_preprocess');
  12. }
  13. function ckgedit_delete_preprocess(Doku_Event $event){
  14. global $ACT;
  15. if (! is_array($ACT) || !(isset($ACT['delete']))) return;
  16. global $TEXT;
  17. $TEXT = NULL;
  18. unset($ACT['delete']);
  19. $ACT['save'] = "Speichern";
  20. }
  21. } //end of action class
  22. ?>