partial cleanup of mod/profile_photo - needs a LOT more
This commit is contained in:
@@ -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
@@ -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 ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user