function smarty_function_text($params, $template) { if (isset($params['code'])) { if (isset($params['var'])) { return lang::text($params['code'], $params['var']); } else { return lang::text($params['code']); } } }
/** * Send query data to debug bar * * @access public * @return void */ public function debug() { $debug = array(); $debug['request'] = $this->prepare_request; $debug['count'] = $this->count; $debug['cache'] = $this->cache; $debug['cached'] = $this->cached; if ($this->ok() && $this->which == "ALL") { $debug['results'] = $this->getArray(); } elseif ($this->ok() && $this->which == "FIRST") { $debug['results'] = $this->get(); } debug::dump($debug, lang::text('sql:request')); }