summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStein Magne Bjorklund2017-06-16 12:57:54 (GMT)
committerStein Magne Bjorklund2017-06-16 12:57:54 (GMT)
commitf5b80f96ab11fa4774a6dfd6463821f229c1997d (patch)
tree91fe485ea60fc1e444869a8cdd55d8ed4cc2d8a1
parentcd103ed74e8238f27fcd676566fc04cb4b3d51f3 (diff)
You can now add single images from album.
Flickr renamed photosets to alubm. The url also changed. This add Support for these type of url. Example: https://www.flickr.com/photos/steinmb/3279274349/in/album-72157613786741477
-rw-r--r--includes/media_flickr.utilities.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/media_flickr.utilities.inc b/includes/media_flickr.utilities.inc
index 576fdb2..8f4f09a 100644
--- a/includes/media_flickr.utilities.inc
+++ b/includes/media_flickr.utilities.inc
@@ -256,6 +256,7 @@ function _media_flickr_media_parse($url, $options = array()) {
'@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/?$@i',
'@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/in/pool-([0-9A-Za-z\@\&\$_-]+)@i',
'@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/in/explore-([0-9]+)@i',
+ '@flickr\.com/photos/([0-9A-Za-z\@\&\$_-]+)/([0-9]+)/in/album-([0-9]+)@i',
);
foreach ($patterns as $pattern) {
preg_match($pattern, $url, $matches);