]> source.dussan.org Git - nextcloud-server.git/commitdiff
Contacts: Fixed paths in import.
authorThomas Tanghus <thomas@tanghus.net>
Thu, 3 May 2012 12:55:48 +0000 (14:55 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 3 May 2012 14:01:40 +0000 (16:01 +0200)
apps/contacts/ajax/importaddressbook.php
apps/contacts/ajax/uploadimport.php
apps/contacts/import.php

index bc02e814f5b776c519e99b316f62ec7282211d60..66cfa4f8af4362b7a1acc794999024da3a43143c 100755 (executable)
@@ -6,7 +6,6 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 OCP\JSON::checkLoggedIn();
 OCP\App::checkAppEnabled('contacts');
 $upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize'));
index 947d4670a29d233d1cbab2b31f872557b97bb15d..99386516f5083c56281de69a99ea4685962c0ae6 100755 (executable)
@@ -19,8 +19,6 @@
  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
  *
  */
-// Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OCP\JSON::checkLoggedIn();
index 346db5924c693ed09ad2b4bb93a1a6081a473a08..2386a1cff980d6f7bf579dfe7c5a15cce1a19dd5 100755 (executable)
@@ -28,7 +28,7 @@ if(!$file) {
        OCP\JSON::error(array('message' => 'Import file was empty.'));
        exit();
 }
-error_log('File: '.$file);
+
 if(isset($_POST['method']) && $_POST['method'] == 'new'){
        $id = OC_Contacts_Addressbook::add(OCP\USER::getUser(), $_POST['addressbookname']);
        OC_Contacts_Addressbook::setActive($id, 1);