aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-04 11:50:38 +0200
committerMario Vavti <mario@mariovavti.com>2018-10-04 11:50:38 +0200
commitd0605e8d5f7c666fffc01352de4d9ed4738f41ab (patch)
tree632781f4e5195ca08996c708f02c4aca8102e95c /Zotlabs/Module
parent3064f2ced5a10da93238bc43b5a08a74ae3bfcb0 (diff)
downloadvolse-hubzilla-d0605e8d5f7c666fffc01352de4d9ed4738f41ab.tar.gz
volse-hubzilla-d0605e8d5f7c666fffc01352de4d9ed4738f41ab.tar.bz2
volse-hubzilla-d0605e8d5f7c666fffc01352de4d9ed4738f41ab.zip
uexport app
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Uexport.php21
1 files changed, 18 insertions, 3 deletions
diff --git a/Zotlabs/Module/Uexport.php b/Zotlabs/Module/Uexport.php
index 9af1887dc..3d1587b87 100644
--- a/Zotlabs/Module/Uexport.php
+++ b/Zotlabs/Module/Uexport.php
@@ -1,18 +1,24 @@
<?php
namespace Zotlabs\Module;
+use App;
+use Zotlabs\Lib\Apps;
+use Zotlabs\Web\Controller;
-class Uexport extends \Zotlabs\Web\Controller {
+class Uexport extends Controller {
function init() {
if(! local_channel())
killme();
-
+
+ if(! Apps::system_app_installed(local_channel(), 'Channel Export'))
+ return;
+
if(argc() > 1) {
$sections = (($_REQUEST['sections']) ? explode(',',$_REQUEST['sections']) : '');
- $channel = \App::get_channel();
+ $channel = App::get_channel();
if(argc() > 1 && intval(argv(1)) > 1900) {
$year = intval(argv(1));
@@ -47,6 +53,15 @@ class Uexport extends \Zotlabs\Web\Controller {
}
function get() {
+
+ if(! Apps::system_app_installed(local_channel(), 'Channel Export')) {
+ //Do not display any associated widgets at this point
+ App::$pdl = '';
+
+ $o = '<b>' . t('Channel Export App') . ' (' . t('Not Installed') . '):</b><br>';
+ $o .= t('Export your channel');
+ return $o;
+ }
$y = datetime_convert('UTC',date_default_timezone_get(),'now','Y');