Commit 89acdfd8 authored by ~rs's avatar ~rs Committed by Luke081515

add function search

parent c9692b3d
......@@ -528,6 +528,20 @@ class Debug extends Core {
$this->processError($e, $starttime, $endtime);
case 'search':
$required = array("pattern", "ns", "prop", "limit", "offset", "what");
$Param = $this->getParams($required);
$this->echoNotice('Starting the function call of search...');
$starttime = microtime (true);
try {
$ret = $this->search($Param[0], $Param[1], $Param[2], $Param[4], $Param[5], $Param[6]);
$endtime = microtime (true);
$this->processFunction($ret, $starttime, $endtime);
} catch (Exception $e) {
$endtime = microtime (true);
$this->processError($e, $starttime, $endtime);
// Admin functions
case 'deletePage':
$required = array("title", "reason");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment