diff options
author | root <root@diekershoff.homeunix.net> | 2011-01-19 17:55:27 +0100 |
---|---|---|
committer | root <root@diekershoff.homeunix.net> | 2011-01-19 17:55:27 +0100 |
commit | 8e22c669a0668fc0498e9c1d822dcefd97bae1e5 (patch) | |
tree | f342d0587a151ed6ef76c9832ab60b6644b34031 /mod/profiles.php | |
parent | 13fa27f7578d292d8d722554ce6211e8e0bc91af (diff) | |
parent | 766ade06d5e3b387d1fd3d2d0b00b15852e877b1 (diff) | |
download | volse-hubzilla-8e22c669a0668fc0498e9c1d822dcefd97bae1e5.tar.gz volse-hubzilla-8e22c669a0668fc0498e9c1d822dcefd97bae1e5.tar.bz2 volse-hubzilla-8e22c669a0668fc0498e9c1d822dcefd97bae1e5.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/profiles.php')
-rw-r--r-- | mod/profiles.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/profiles.php b/mod/profiles.php index 3488c8687..54c57f73e 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -46,6 +46,7 @@ function profiles_post(&$a) { if($orig[0]['name'] != $name) $namechanged = true; + $pdesc = notags(trim($_POST['pdesc'])); $gender = notags(trim($_POST['gender'])); $address = notags(trim($_POST['address'])); $locality = notags(trim($_POST['locality'])); @@ -125,6 +126,7 @@ function profiles_post(&$a) { $r = q("UPDATE `profile` SET `profile-name` = '%s', `name` = '%s', + `pdesc` = '%s', `gender` = '%s', `dob` = '%s', `address` = '%s', @@ -153,6 +155,7 @@ function profiles_post(&$a) { WHERE `id` = %d AND `uid` = %d LIMIT 1", dbesc($profile_name), dbesc($name), + dbesc($pdesc), dbesc($gender), dbesc($dob), dbesc($address), @@ -208,6 +211,7 @@ function profiles_post(&$a) { function profiles_content(&$a) { + $o = ''; $o .= '<script> $(document).ready(function() { $(\'#nav-profiles-link\').addClass(\'nav-selected\'); });</script>'; @@ -356,6 +360,7 @@ function profiles_content(&$a) { '$profile_name' => $r[0]['profile-name'], '$default' => (($is_default) ? '<p id="profile-edit-default-desc">' . t('This is your <strong>public</strong> profile.<br />It <strong>may</strong> be visible to anybody using the internet.') . '</p>' : ""), '$name' => $r[0]['name'], + '$pdesc' => $r[0]['pdesc'], '$dob' => dob($r[0]['dob']), '$hide_friends' => $hide_friends, '$address' => $r[0]['address'], |