Exclude stream photo

This excludes the stream photo from deletion on 'um_after_user_upload'
hook.
This commit is contained in:
champsupertramp
2015-11-16 22:04:59 +08:00
parent 956fd728ba
commit 323cd4a744
+1 -1
View File
@@ -31,7 +31,7 @@
foreach($files as $file) {
$str = basename($file);
if ( !strstr( $str, 'profile_photo') && !strstr( $str, 'cover_photo') && !preg_grep('/' . $str . '/', $array ) )
if ( !strstr( $str, 'profile_photo') && !strstr( $str, 'cover_photo') && !strstr( $str, 'stream_photo') && !preg_grep('/' . $str . '/', $array ) )
unlink( $file );
}