summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-05 03:36:16 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-05 03:36:16 +0200
commit80ca883d4cdf70e74e3a3317d370221193216700 (patch)
treef7e4e3b5eef11d06bba0063558aff93df3ac7279
parent07fd517fdacdb250c816f7a75e28df84a40c4a00 (diff)
downloadnextcloud-server-80ca883d4cdf70e74e3a3317d370221193216700.tar.gz
nextcloud-server-80ca883d4cdf70e74e3a3317d370221193216700.zip
Correct path to ajax file.
-rw-r--r--apps/contacts/ajax/contact/details.php6
-rw-r--r--apps/contacts/js/contacts.js4
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/contacts/ajax/contact/details.php b/apps/contacts/ajax/contact/details.php
index 27d7611ade9..0e07f9ec3d8 100644
--- a/apps/contacts/ajax/contact/details.php
+++ b/apps/contacts/ajax/contact/details.php
@@ -19,8 +19,8 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
-
-require_once 'loghandler.php';
+
+require_once __DIR__.'/../loghandler.php';
// Check if we are a user
OCP\JSON::checkLoggedIn();
@@ -31,7 +31,7 @@ if(is_null($id)) {
bailOut(OC_Contacts_App::$l10n->t('Missing ID'));
}
$card = OC_Contacts_VCard::find($id);
-$vcard = OC_Contacts_App::getContactVCard( $id );
+$vcard = OC_VObject::parse($card['carddata']);
if(is_null($vcard)) {
bailOut(OC_Contacts_App::$l10n->t('Error parsing VCard for ID: "'.$id.'"'));
}
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js
index 0b4a3c0a540..9aec02557fc 100644
--- a/apps/contacts/js/contacts.js
+++ b/apps/contacts/js/contacts.js
@@ -348,7 +348,7 @@ OC.Contacts={
console.log('newid: ' + newid + ' bookid: ' +bookid);
var localLoadContact = function(newid, bookid) {
if($('.contacts li').length > 0) {
- $.getJSON(OC.filePath('contacts', 'ajax', 'contactdetails.php'),{'id':newid},function(jsondata){
+ $.getJSON(OC.filePath('contacts', 'ajax', 'contact/details.php'),{'id':newid},function(jsondata){
if(jsondata.status == 'success'){
if(bookid == 'unknown') {
bookid = jsondata.data.addressbookid;
@@ -1783,7 +1783,7 @@ $(document).ready(function(){
$('#contacts h3[data-id="'+bookid+'"]').addClass('active');
}
}
- $.getJSON(OC.filePath('contacts', 'ajax', 'contactdetails.php'),{'id':id},function(jsondata){
+ $.getJSON(OC.filePath('contacts', 'ajax', 'contact/details.php'),{'id':id},function(jsondata){
if(jsondata.status == 'success'){
OC.Contacts.Card.loadContact(jsondata.data, bookid);
}