diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-11-18 17:40:42 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-01-31 18:54:48 +0100 |
commit | dea0ba28f950867532eae572e7bcda49e81bbcf0 (patch) | |
tree | 8a9c4f9d7525a2ba249bbaaabe456c2d0941293b /plugins/wallabag | |
parent | 423e2a8b13dc0069c83f3e540f576aa1b89fe5d5 (diff) | |
download | Shaarli-dea0ba28f950867532eae572e7bcda49e81bbcf0.tar.gz Shaarli-dea0ba28f950867532eae572e7bcda49e81bbcf0.tar.zst Shaarli-dea0ba28f950867532eae572e7bcda49e81bbcf0.zip |
Fixes #378 - Plugin administration UI.
Diffstat (limited to 'plugins/wallabag')
-rw-r--r-- | plugins/wallabag/wallabag.meta | 2 | ||||
-rw-r--r-- | plugins/wallabag/wallabag.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/wallabag/wallabag.meta b/plugins/wallabag/wallabag.meta new file mode 100644 index 00000000..8763c4a2 --- /dev/null +++ b/plugins/wallabag/wallabag.meta | |||
@@ -0,0 +1,2 @@ | |||
1 | description="For each link, add a Wallabag icon to save it in your instance." | ||
2 | parameters="WALLABAG_URL" \ No newline at end of file | ||
diff --git a/plugins/wallabag/wallabag.php b/plugins/wallabag/wallabag.php index e3c399a9..0d6fc66d 100644 --- a/plugins/wallabag/wallabag.php +++ b/plugins/wallabag/wallabag.php | |||
@@ -11,7 +11,7 @@ if (is_file(PluginManager::$PLUGINS_PATH . '/wallabag/config.php')) { | |||
11 | include PluginManager::$PLUGINS_PATH . '/wallabag/config.php'; | 11 | include PluginManager::$PLUGINS_PATH . '/wallabag/config.php'; |
12 | } | 12 | } |
13 | 13 | ||
14 | if (!isset($GLOBALS['plugins']['WALLABAG_URL'])) { | 14 | if (empty($GLOBALS['plugins']['WALLABAG_URL'])) { |
15 | $GLOBALS['plugin_errors'][] = 'Wallabag plugin error: '. | 15 | $GLOBALS['plugin_errors'][] = 'Wallabag plugin error: '. |
16 | 'Please define "$GLOBALS[\'plugins\'][\'WALLABAG_URL\']" '. | 16 | 'Please define "$GLOBALS[\'plugins\'][\'WALLABAG_URL\']" '. |
17 | 'in "plugins/wallabag/config.php" or in your Shaarli config.php file.'; | 17 | 'in "plugins/wallabag/config.php" or in your Shaarli config.php file.'; |