Commit 96c33317 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Report: instantiate SIP.

Store: fixed typo in required_once
QuickFormQuery: rewrote instantiation of Report
parent 18bac330
......@@ -319,7 +319,7 @@ class QuickFormQuery {
* @return string
*/
private function doReport() {
$report = new Report($this->t3data, $this->sip);
$report = new Report($this->t3data, $this->store->getVar(SYSTEM_SESSIONNAME, STORE_SYSTEM));
$html = $report->process();
......
......@@ -79,10 +79,10 @@ class Report {
*
* @param array $t3data
*/
public function __construct(array $t3data, SIP $sip) {
public function __construct(array $t3data, $sessionName) {
$this->t3data = $t3data;
$this->sip = $sip;
$this->sip = new Sip($sessionName);
$this->page_control["msgbox"]["pagec"] = "Please confirm!";
......
......@@ -14,7 +14,7 @@ use qfq\OnArray;
use qfq;
require_once(__DIR__ . '/../../qfq/helper/KeyValueStringParser.php');
require_once(__DIR__ . '/../../qfq/helper/sanitize.php');
require_once(__DIR__ . '/../../qfq/helper/Sanitize.php');
require_once(__DIR__ . '/../../qfq/Constants.php');
require_once(__DIR__ . '/../../qfq/store/Sip.php');
require_once(__DIR__ . '/../../qfq/Database.php');
......
Supports Markdown
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