silverstripe-picasaweb 

silverstripe-picasaweb Commit Details

Date:2013-05-06 22:00:43 (7 years 11 months ago)
Author:Nicola Fontana
Branch:master
Commit:88a6e01356200591d86839ed03d9f6f8b5014218
Parents: 64ee7fbab405de33ce8a70115f061d6d6fbdec10
Message:Improved doc on scheme stripping

Changes:
Mcode/Picasaweb.php (1 diff)

File differences

code/Picasaweb.php
369369
370370
371371
372
373
374
372
373
374
375375
376376
377377
$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);

Archive Download the corresponding diff file

Branches