aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-02-22 16:53:51 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-02-22 17:03:36 -0500
commit27764b36353b3066a9e92da2a96ac17b546295be (patch)
treee95e6dada362a45ef8d920fbe954ae1dd9c5b899 /app/Controllers/configureController.php
parent7313f9f3a306d16fac78ab587e3055482398ceac (diff)
Improve sharing
Previously, the share page can handle only a limited number of shares and only one of each type. Now the configuration has been change to be more flexible and allows an unlimited number of shares. The share description is located in an array and the share configuration is stored along with the user configuration. Note: I tried to include the specific javascript code in a separate file but I did not succeded to import it.
Diffstat (limited to 'app/Controllers/configureController.php')
-rwxr-xr-xapp/Controllers/configureController.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index ad8bc546a..104fa8900 100755
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -192,16 +192,8 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
public function sharingAction () {
if (Minz_Request::isPost ()) {
- $this->view->conf->_sharing (array(
- 'shaarli' => Minz_Request::param ('shaarli', false),
- 'wallabag' => Minz_Request::param ('wallabag', false),
- 'diaspora' => Minz_Request::param ('diaspora', false),
- 'twitter' => Minz_Request::param ('twitter', false),
- 'g+' => Minz_Request::param ('g+', false),
- 'facebook' => Minz_Request::param ('facebook', false),
- 'email' => Minz_Request::param ('email', false),
- 'print' => Minz_Request::param ('print', false),
- ));
+ $params = Minz_Request::params();
+ $this->view->conf->_sharing ($params['share']);
$this->view->conf->save();
invalidateHttpCache();