From 41245888f1c538f15d7ffa3a0ddc9310b60c98d7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 26 Jan 2016 11:45:47 +0300 Subject: only stop inline feed updates with open_basedir enabled if there are any plugins that require CURL enabled add plugin->flags() returning array with additional plugin information, currently only CURL requirement (optional) --- plugins/af_redditimgur/init.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/af_redditimgur/init.php') diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 1ab696ce3..67ee0c989 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -8,6 +8,10 @@ class Af_RedditImgur extends Plugin { "fox"); } + function flags() { + return array("needs_curl" => true); + } + function init($host) { $this->host = $host; -- cgit v1.2.3