summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/importExportController.php14
-rwxr-xr-xapp/actualize_script.php1
2 files changed, 4 insertions, 11 deletions
diff --git a/app/Controllers/importExportController.php b/app/Controllers/importExportController.php
index 458814676..f697f4c9e 100644
--- a/app/Controllers/importExportController.php
+++ b/app/Controllers/importExportController.php
@@ -65,7 +65,7 @@ class FreshRSS_importExport_Controller extends Minz_ActionController {
$export_all = Minz_Request::param('export_all', false);
// code from https://stackoverflow.com/questions/1061710/php-zip-files-on-the-fly
- $file = tempnam("tmp", "zip");
+ $file = tempnam('tmp', 'zip');
$zip = new ZipArchive();
$zip->open($file, ZipArchive::OVERWRITE);
@@ -101,17 +101,11 @@ class FreshRSS_importExport_Controller extends Minz_ActionController {
}
$this->view->categories = $list;
-
- // TODO: add a parameter to renderHelper in order to get a variable
- ob_start();
- $this->view->renderHelper('export/opml');
- return ob_get_clean();
+ return $this->view->helperToString('export/opml');
}
private function generate_articles($type) {
- // TODO: same here + we should get articles according to $type
- ob_start();
- $this->view->renderHelper('export/articles');
- return ob_get_clean();
+ // TODO: we should get articles according to $type
+ return $this->view->helperToString('export/articles');
}
}
diff --git a/app/actualize_script.php b/app/actualize_script.php
index 8d81e0189..4c306b8da 100755
--- a/app/actualize_script.php
+++ b/app/actualize_script.php
@@ -28,7 +28,6 @@ foreach ($users as $myUser) {
$_SERVER['HTTP_HOST'] = '';
$freshRSS = new FreshRSS();
- $freshRSS->_useOb(false);
Minz_Configuration::_authType('none');