]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_confirm.php
Fix require_once format
[friendica.git] / mod / dfrn_confirm.php
index 6ebde734e6ace3dfae9c610c521371afcaab1300..10ea8937ea31f8e8cf7dfb8200c3e44c9c146e28 100644 (file)
@@ -20,9 +20,9 @@
 
 use Friendica\App;
 
-require_once('include/enotify.php');
-require_once('include/group.php');
 require_once('include/Probe.php');
+require_once 'include/enotify.php';
+require_once 'include/group.php';
 
 function dfrn_confirm_post(App $a, $handsfree = null) {
 
@@ -154,7 +154,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
                         * worried about key leakage than anybody cracking it.
                         *
                         */
-                       require_once('include/crypto.php');
+                       require_once 'include/crypto.php';
 
                        $res = new_keypair(4096);
 
@@ -319,7 +319,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
                 *
                 */
 
-               require_once('include/Photo.php');
+               require_once 'include/Photo.php';
 
                update_contact_avatar($contact['photo'],$uid,$contact_id);
 
@@ -435,7 +435,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
                if ((isset($new_relation) && $new_relation == CONTACT_IS_FRIEND)) {
 
                        if (($contact) && ($contact['network'] === NETWORK_DIASPORA)) {
-                               require_once('include/diaspora.php');
+                               require_once 'include/diaspora.php';
                                $ret = Diaspora::send_share($user[0],$r[0]);
                                logger('share returns: ' . $ret);
                        }
@@ -448,7 +448,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
 
                        if((dbm::is_result($r)) && ($r[0]['hide-friends'] == 0) && ($activity) && (! $hidden)) {
 
-                               require_once('include/items.php');
+                               require_once 'include/items.php';
 
                                $self = q("SELECT * FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1",
                                        intval($uid)
@@ -672,7 +672,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
                        $photo = App::get_baseurl() . '/images/person-175.jpg';
                }
 
-               require_once("include/Photo.php");
+               require_once 'include/Photo.php';
 
                update_contact_avatar($photo,$local_uid,$dfrn_record);
 
@@ -752,7 +752,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) {
 
                        if((dbm::is_result($r)) && ($r[0]['hide-friends'] == 0)) {
 
-                               require_once('include/items.php');
+                               require_once 'include/items.php';
 
                                $self = q("SELECT * FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1",
                                        intval($local_uid)