]> git.mxchange.org Git - friendica.git/blobdiff - mod/notes.php
Merge pull request #4243 from MrPetovan/task/switch-to-array-new-style
[friendica.git] / mod / notes.php
index c5c45be7243c8a7081b9d5de0056df7d55d15267..a98577e546d73a4eb1289071b304796402add152 100644 (file)
@@ -1,7 +1,10 @@
 <?php
-
+/**
+ * @file mod/notes.php
+ */
 use Friendica\App;
 use Friendica\Database\DBM;
+use Friendica\Model\Profile;
 
 function notes_init(App $a) {
 
@@ -15,7 +18,7 @@ function notes_init(App $a) {
 
        nav_set_selected('home');
 
-//     profile_load($a,$which,$profile);
+       //Profile::load($a, $which, $profile);
 
 }
 
@@ -31,7 +34,7 @@ function notes_content(App $a, $update = false) {
        require_once('include/security.php');
        require_once('include/conversation.php');
        require_once('include/acl_selectors.php');
-       $groups = array();
+       $groups = [];
 
 
        $o = '';
@@ -44,7 +47,7 @@ function notes_content(App $a, $update = false) {
        $is_owner = true;
 
        $o ="";
-       $o .= profile_tabs($a,True);
+       $o .= Profile::getTabs($a, true);
 
        if(! $update) {
                $o .= '<h3>' . t('Personal Notes') . '</h3>';
@@ -52,7 +55,7 @@ function notes_content(App $a, $update = false) {
                $commpage = false;
                $commvisitor = false;
 
-               $x = array(
+               $x = [
                        'is_owner' => $is_owner,
                        'allow_location' => (($a->user['allow_location']) ? true : false),
                        'default_location' => $a->user['default-location'],
@@ -64,7 +67,7 @@ function notes_content(App $a, $update = false) {
                        'profile_uid' => local_user(),
                        'button' => t('Save'),
                        'acl_data' => '',
-               );
+               ];
 
                $o .= status_editor($a,$x,$a->contact['id']);
 
@@ -103,7 +106,7 @@ function notes_content(App $a, $update = false) {
 
        );
 
-       $parents_arr = array();
+       $parents_arr = [];
        $parents_str = '';
 
        if (DBM::is_result($r)) {