Skip to content
Snippets Groups Projects
Commit 5cfa7ce3 authored by alangrafu's avatar alangrafu Committed by GIT_AUTHOR_NAME
Browse files

Merge branch 'hotfixes'

parents e175c6d7 e4c95446
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ class SpecialFunction extends AbstractSpecialFunction{
}
$args["arg".$i]=$params[$i];
}
$data['params'] = $params;
$results['params'] = $params;
$base = $conf['view']['standard'];
$base['type'] = $modelFile;
$base['root'] = $conf['root'];
......@@ -90,14 +90,13 @@ class SpecialFunction extends AbstractSpecialFunction{
$base['model']['directory'] = $conf['home'].$conf['model']['directory'];
chdir($conf['model']['directory']);
$first = array();
Utils::queryFile($modelFile, $endpoints['local'], $data, $first);
$results = array();
Utils::queryFile($modelFile, $endpoints['local'], $results, $first);
chdir($conf['home']);
$data = Utils::internalize($data);
$results = Utils::internalize($results);
if(is_array($data)){
$results = Convert::array_to_object($data);
}else{
$results = $data;
if(is_array($results)){
$results = Convert::array_to_object($results);
}
Utils::processDocument($viewFile, $base, $results);
}catch (Exception $ex){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment