diff options
Diffstat (limited to 'admin/survey/export/class.ExportController.php')
-rw-r--r-- | admin/survey/export/class.ExportController.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/admin/survey/export/class.ExportController.php b/admin/survey/export/class.ExportController.php index 9cffefd..e3318e8 100644 --- a/admin/survey/export/class.ExportController.php +++ b/admin/survey/export/class.ExportController.php @@ -136,7 +136,7 @@ class ExportController{ case 'html':
// Ustvarimo latex dokument
$document = new LatexDocument($this->anketa);
- $document->createDocument($export_type['export_type'], $export_type['export_subtype'], $export_format, $_GET['sprID']);
+ $document->createDocument($export_type['export_type'], $export_type['export_subtype'], $export_format, (isset($_GET['sprID'])?$_GET['sprID']:null));
break;
case 'xml':
@@ -292,7 +292,7 @@ class ExportController{ // Nastavimo tip izvoza
private function getExportType(){
global $site_path, $global_user_id, $admin_type, $lang;
-
+ if(isset($_GET['a']))
switch ( $_GET['a'] ) {
case A_REPORT_VPRASALNIK_PDF:
case A_REPORT_VPRASALNIK_RTF:
@@ -349,6 +349,7 @@ class ExportController{ $export_subtype = 'activity';
break;
}
+ if(isset($_GET['m']))
switch ( $_GET['m'] ) {
// Kakšna je razlika med tema dvema izvozoma??
@@ -477,7 +478,7 @@ class ExportController{ // Nastavimo format izvoza
private function getExportFormat(){
global $site_path, $global_user_id, $admin_type, $lang;
-
+ if(isset($_GET['a']))
switch ( $_GET['a'] ) {
case A_REPORT_VPRASALNIK_PDF:
case A_REPORT_PDF_RESULTS:
@@ -507,6 +508,7 @@ class ExportController{ $export_format = 'xml';
break;
}
+ if(isset($_GET['m']))
switch ( $_GET['m'] ) {
// Kakšna je razlika med tema dvema izvozoma??
|