1<?php 2 3namespace dokuwiki\Action; 4 5use dokuwiki\Action\Exception\ActionAbort; 6 7class Search extends AbstractAction { 8 9 /** @inheritdoc */ 10 function minimumPermission() { 11 return AUTH_NONE; 12 } 13 14 /** 15 * we only search if a search word was given 16 * 17 * @inheritdoc 18 */ 19 public function checkPermissions() { 20 parent::checkPermissions(); 21 global $QUERY; 22 $s = cleanID($QUERY); 23 if($s === '') throw new ActionAbort(); 24 } 25 26 /** @inheritdoc */ 27 public function tplContent() { 28 html_search(); 29 } 30} 31