]> git.mxchange.org Git - friendica.git/commitdiff
profile_vcard: add correct menu for profile editing when multiple profiles are disabled
authorFabrixxm <fabrix.xm@gmail.com>
Wed, 23 Jan 2013 14:58:30 +0000 (09:58 -0500)
committerFabrixxm <fabrix.xm@gmail.com>
Wed, 23 Jan 2013 14:58:30 +0000 (09:58 -0500)
boot.php

index 188c1b34ab1d8f2b6420732cf55d72da4a7e627f..accaf1d0c549760f679a144a237ba72c65d5895a 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1364,9 +1364,15 @@ if(! function_exists('profile_sidebar')) {
 
 
                        }
-
-
                }
+        if ($profile['uid'] == local_user() && !feature_enabled(local_user(),'multi_profiles')) {
+            $profile['edit'] = array($a->get_baseurl(). '/profiles/'.$profile['id'], t('Edit profile'),"", t('Edit profile'));
+               $profile['menu'] = array(
+                               'chg_photo' => t('Change profile photo'),
+                               'cr_new' => null,
+                               'entries' => array(),
+                       );
+        }
 
 
 
@@ -1419,6 +1425,7 @@ if(! function_exists('profile_sidebar')) {
                if($a->theme['template_engine'] === 'internal')
                        $location = template_escape($location);
 
+
                $tpl = get_markup_template('profile_vcard.tpl');
                $o .= replace_macros($tpl, array(
                        '$profile' => $p,