From 1af9f54f3202bff057080ebaf208954e5abad4be Mon Sep 17 00:00:00 2001 From: aliz27 Date: Thu, 14 May 2015 22:39:11 +0200 Subject: [PATCH] Correct variable --- plugins/af_redditimgur/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 1bf91e88a..4521eae8c 100644 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -94,7 +94,7 @@ class Af_RedditImgur extends Plugin { $matches = array(); if (preg_match("/^https?:\/\/(m\.)?imgur.com\/([^\.\/]+$)/", $entry->getAttribute("href"), $matches)) { - $token = $matches[1]; + $token = $matches[2]; $album_content = fetch_file_contents($entry->getAttribute("href"), false, false, false, false, 10);