i think at this one code, but i no have idea to fix it.
$path = $picture->path;
/*bmo: if(preg_match(‘/^\\/wp-content/’, $path)==0){//prüfe ob der pfad etwas vor /wp-content enth?lt
$newpath = preg_split(‘/\\/wp-content/i’, $path, 2);
$path = “/wp-content”.$newpath[1];
}*/
need some body help this one.