partial cleanup of mod/profile_photo - needs a LOT more

This commit is contained in:
friendica
2013-02-05 20:14:19 -08:00
parent f3eb2eb9e7
commit 2a6abaf9d5
3 changed files with 69 additions and 54 deletions
+1
View File
@@ -219,6 +219,7 @@ function photo_upload($channel, $observer, $args) {
$ret['success'] = true;
$ret['body'] = $arr['body'];
$ret['resource_id'] = $photo_hash;
$ret['photoitem_id'] = $item_id;
call_hooks('photo_post_end',$ret);
+3 -2
View File
@@ -177,8 +177,9 @@ if(! function_exists('xmlify')) {
function xmlify($str) {
$buffer = '';
for($x = 0; $x < mb_strlen($str); $x ++) {
$char = $str[$x];
$len = mb_strlen($str);
for($x = 0; $x < $len; $x ++) {
$char = mb_substr($str,$x,1);
switch( $char ) {