A free, self-hostable news aggregator…
Fix share warning with Wallabag (#2817)
Alexandre Alapetite128b3367880f
diff --git a/app/Models/Share.php b/app/Models/Share.phpindex cf9966a4b..1fc3c493e 100644--- a/app/Models/Share.php+++ b/app/Models/Share.php@@ -260,7 +260,9 @@ class FreshRSS_Share {}foreach ($transform as $action) {- $data = call_user_func($action, $data);+ if (is_string($action) && $action != '') {+ $data = call_user_func($action, $data);+ }}return $data;diff --git a/app/shares.php b/app/shares.phpindex 7778dbd5c..daca836bf 100644--- a/app/shares.php+++ b/app/shares.php@@ -39,20 +39,14 @@ return array(),'wallabag' => array('url' => '~URL~?action=add&url=~LINK~',- 'transform' => array(- 'link' => array('base64_encode'),- 'title' => array(),- ),+ 'transform' => array('rawurlencode'),'help' => 'http://www.wallabag.org/','form' => 'advanced','method' => 'GET',),'wallabagv2' => array('url' => '~URL~/bookmarklet?url=~LINK~',- 'transform' => array(- 'link' => array('rawurlencode'),- 'title' => array(),- ),+ 'transform' => array('rawurlencode'),'help' => 'http://www.wallabag.org/','form' => 'advanced','method' => 'GET',