diff --git a/bureaucracy_field.php b/bureaucracy_field.php index b4fc71d..55d6cbd 100644 --- a/bureaucracy_field.php +++ b/bureaucracy_field.php @@ -8,6 +8,9 @@ */ class syntax_plugin_bureaucracy_field_dataplugin extends helper_plugin_bureaucracy_field { + public $opt; + public $tpl; + public $error; private $args = []; private $additional; diff --git a/helper/aliastextbox.php b/helper/aliastextbox.php index 010e791..518adec 100644 --- a/helper/aliastextbox.php +++ b/helper/aliastextbox.php @@ -8,6 +8,9 @@ */ class helper_plugin_data_aliastextbox extends helper_plugin_bureaucracy_field { + public $opt; + public $tpl; + public $error; private $args; private $additional; diff --git a/syntax/entry.php b/syntax/entry.php index d5ea71d..317f10a 100644 --- a/syntax/entry.php +++ b/syntax/entry.php @@ -303,9 +303,8 @@ public function saveData($data, $id, $title) * @fixme replace this madness * @return bool|mixed */ - public function replaceQuery() + public function replaceQuery(...$args) { - $args = func_get_args(); $argc = func_num_args(); if ($argc > 1) { @@ -320,7 +319,7 @@ public function replaceQuery() $sqlite = $this->dthlp->getDB(); if (!$sqlite) return false; - return call_user_func_array(array(&$sqlite, 'query'), $args); + return call_user_func_array([&$sqlite, 'query'], $args); }