summaryrefslogtreecommitdiffstats
path: root/apps/contacts
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-02 19:08:37 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-02 19:08:37 +0200
commit4fe90f62f4041d31402cbe198fd0e3edce77ce13 (patch)
tree2320a5fabe2e5347c04472af1cc95a6eb056369f /apps/contacts
parenteec7c3833c9c1f1e83549474d6ba4b34ce307761 (diff)
downloadnextcloud-server-4fe90f62f4041d31402cbe198fd0e3edce77ce13.tar.gz
nextcloud-server-4fe90f62f4041d31402cbe198fd0e3edce77ce13.zip
port checkAppEnabled
Diffstat (limited to 'apps/contacts')
-rwxr-xr-xapps/contacts/ajax/importaddressbook.php2
-rwxr-xr-x[-rw-r--r--]apps/contacts/ajax/importdialog.php2
-rwxr-xr-x[-rw-r--r--]apps/contacts/appinfo/remote.php2
-rwxr-xr-xapps/contacts/export.php2
-rwxr-xr-xapps/contacts/import.php2
-rwxr-xr-xapps/contacts/index.php2
-rwxr-xr-xapps/contacts/photo.php2
-rwxr-xr-xapps/contacts/thumbnail.php2
8 files changed, 8 insertions, 8 deletions
diff --git a/apps/contacts/ajax/importaddressbook.php b/apps/contacts/ajax/importaddressbook.php
index e54d22b9caf..dc251de201a 100755
--- a/apps/contacts/ajax/importaddressbook.php
+++ b/apps/contacts/ajax/importaddressbook.php
@@ -8,7 +8,7 @@
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn();
-OC_Util::checkAppEnabled('contacts');
+OCP\App::checkAppEnabled('contacts');
$upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize'));
$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size'));
$maxUploadFilesize = min($upload_max_filesize, $post_max_size);
diff --git a/apps/contacts/ajax/importdialog.php b/apps/contacts/ajax/importdialog.php
index cde6bb2f5c4..bd195023dd2 100644..100755
--- a/apps/contacts/ajax/importdialog.php
+++ b/apps/contacts/ajax/importdialog.php
@@ -8,7 +8,7 @@
OC_JSON::checkLoggedIn();
-OC_Util::checkAppEnabled('contacts');
+OCP\App::checkAppEnabled('contacts');
$tmpl = new OC_Template('contacts', 'part.import');
$tmpl->assign('path', $_POST['path']);
$tmpl->assign('filename', $_POST['filename']);
diff --git a/apps/contacts/appinfo/remote.php b/apps/contacts/appinfo/remote.php
index 3ffdb64b52b..804c560e3d0 100644..100755
--- a/apps/contacts/appinfo/remote.php
+++ b/apps/contacts/appinfo/remote.php
@@ -23,7 +23,7 @@
$RUNTIME_NOSETUPFS = true;
require_once('../lib/base.php');
-OC_Util::checkAppEnabled('contacts');
+OCP\App::checkAppEnabled('contacts');
// Backends
$authBackend = new OC_Connector_Sabre_Auth();
diff --git a/apps/contacts/export.php b/apps/contacts/export.php
index 84bf26042fb..4e4ade2f2ba 100755
--- a/apps/contacts/export.php
+++ b/apps/contacts/export.php
@@ -8,7 +8,7 @@
OCP\User::checkLoggedIn();
-OC_Util::checkAppEnabled('contacts');
+OCP\App::checkAppEnabled('contacts');
$bookid = isset($_GET['bookid']) ? $_GET['bookid'] : NULL;
$contactid = isset($_GET['contactid']) ? $_GET['contactid'] : NULL;
$nl = "\n";
diff --git a/apps/contacts/import.php b/apps/contacts/import.php
index 9355f8b9f70..2bcb40f7d42 100755
--- a/apps/contacts/import.php
+++ b/apps/contacts/import.php
@@ -9,7 +9,7 @@
ob_start();
OC_JSON::checkLoggedIn();
-OC_Util::checkAppEnabled('contacts');
+OCP\App::checkAppEnabled('contacts');
$nl = "\n";
$progressfile = 'import_tmp/' . md5(session_id()) . '.txt';
if(is_writable('import_tmp/')){
diff --git a/apps/contacts/index.php b/apps/contacts/index.php
index 8e3c2faf012..814a8927f32 100755
--- a/apps/contacts/index.php
+++ b/apps/contacts/index.php
@@ -10,7 +10,7 @@
// Check if we are a user
OCP\User::checkLoggedIn();
-OC_Util::checkAppEnabled('contacts');
+OCP\App::checkAppEnabled('contacts');
// Get active address books. This creates a default one if none exists.
$ids = OC_Contacts_Addressbook::activeIds(OCP\USER::getUser());
diff --git a/apps/contacts/photo.php b/apps/contacts/photo.php
index a545afc434b..60723b7f0b5 100755
--- a/apps/contacts/photo.php
+++ b/apps/contacts/photo.php
@@ -11,7 +11,7 @@
// Init owncloud
OCP\User::checkLoggedIn();
-OC_Util::checkAppEnabled('contacts');
+OCP\App::checkAppEnabled('contacts');
function getStandardImage(){
OC_Response::setExpiresHeader('P10D');
diff --git a/apps/contacts/thumbnail.php b/apps/contacts/thumbnail.php
index 239ec7f4d47..cf54b4ffd4f 100755
--- a/apps/contacts/thumbnail.php
+++ b/apps/contacts/thumbnail.php
@@ -24,7 +24,7 @@
OC_JSON::checkLoggedIn();
//OCP\User::checkLoggedIn();
-OC_Util::checkAppEnabled('contacts');
+OCP\App::checkAppEnabled('contacts');
function getStandardImage(){
OC_Response::setExpiresHeader('P10D');