From 8e33d0e767579f9f9c783973b6cce14ccf4620dd Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 1 Apr 2017 12:26:31 +0200 Subject: Remove readityourself plugin Fixes #818 --- plugins/readityourself/readityourself.php | 51 ------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 plugins/readityourself/readityourself.php (limited to 'plugins/readityourself/readityourself.php') diff --git a/plugins/readityourself/readityourself.php b/plugins/readityourself/readityourself.php deleted file mode 100644 index 961c5bda..00000000 --- a/plugins/readityourself/readityourself.php +++ /dev/null @@ -1,51 +0,0 @@ -get('plugins.READITYOUSELF_URL'); - if (empty($riyUrl)) { - $error = 'Readityourself plugin error: '. - 'Please define the "READITYOUSELF_URL" setting in the plugin administration page.'; - return array($error); - } -} - -/** - * Add readityourself icon to link_plugin when rendering linklist. - * - * @param mixed $data Linklist data. - * @param ConfigManager $conf Configuration Manager instance. - * - * @return mixed - linklist data with readityourself plugin. - */ -function hook_readityourself_render_linklist($data, $conf) -{ - $riyUrl = $conf->get('plugins.READITYOUSELF_URL'); - if (empty($riyUrl)) { - return $data; - } - - $readityourself_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/readityourself/readityourself.html'); - - foreach ($data['links'] as &$value) { - $readityourself = sprintf($readityourself_html, $riyUrl, $value['url'], PluginManager::$PLUGINS_PATH); - $value['link_plugin'][] = $readityourself; - } - - return $data; -} -- cgit v1.2.3