summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKamil Domanski <kdomanski@kdemail.net>2011-06-18 22:02:45 +0200
committerKamil Domanski <kdomanski@kdemail.net>2011-06-18 22:02:45 +0200
commitbe3ee0318942f092839b3de04f193a04e397116c (patch)
tree40dafd467b6c7ec7e0e88ec0150ea11706ce0174 /admin
parent51420a75228d10c803f102eefa3264484675616e (diff)
downloadnextcloud-server-be3ee0318942f092839b3de04f193a04e397116c.tar.gz
nextcloud-server-be3ee0318942f092839b3de04f193a04e397116c.zip
handle app repo connection failure
Diffstat (limited to 'admin')
-rw-r--r--admin/apps.php7
-rw-r--r--admin/templates/app_noconn.php7
2 files changed, 14 insertions, 0 deletions
diff --git a/admin/apps.php b/admin/apps.php
index 7ce3f4c419f..5b4e65e340e 100644
--- a/admin/apps.php
+++ b/admin/apps.php
@@ -36,7 +36,14 @@ if(isset($_GET['id'])) $id=$_GET['id']; else $id=0;
if(isset($_GET['cat'])) $cat=$_GET['cat']; else $cat=0;
$categories=OC_OCSCLIENT::getCategories();
+if($categories==NULL){
+ OC_APP::setActiveNavigationEntry( "core_apps" );
+ $tmpl = new OC_TEMPLATE( "admin", "app_noconn", "admin" );
+ $tmpl->printPage();
+ unset($tmpl);
+ exit();
+}
/*
All
diff --git a/admin/templates/app_noconn.php b/admin/templates/app_noconn.php
new file mode 100644
index 00000000000..2ca3d15d445
--- /dev/null
+++ b/admin/templates/app_noconn.php
@@ -0,0 +1,7 @@
+<?php
+/*
+ * Template for Apps when can't connect to app store
+ */
+?>
+<h1>Apps Repository</h1>
+<h2>Cannot connect to apps repository</h2> \ No newline at end of file