$album = @$match[2];␊ |
$photo = @$match[4];␊ |
␊ |
// $url cannot be embedded as is: if included in a template it␊ |
// will be expanded recursively. This is the rationale behind␊ |
// the following scheme stripping.␊ |
// If the PicasawebExtension is enabled, embedding $url in␊ |
// templates will result in a recursive expansion. This is the␊ |
// rationale behind the stripping of the scheme.␊ |
$fields = array('url' => preg_replace('"https?://"', '', $url));␊ |
␊ |
return self::render($user, $album, $photo, $fields);␊ |