A free, self-hostable news aggregator…
Sharing: Compatibility 0.7
Alexandre Alapetite166009f36232
diff --git a/README.md b/README.mdindex 2b54ff9d5..6c434527c 100644--- a/README.md+++ b/README.md@@ -43,7 +43,7 @@ Privilégiez pour cela des demandes sur GitHub# Contrôle d’accèsIl est requis pour le mode multi-utilisateur, et recommandé dans tous les cas, de limiter l’accès à votre FreshRSS. Au choix :-* En utilisant l’identification par formulaire (requiert JavaScript, et PHP 5.3.7+ recommandé – fonctionne avec certaines versions de PHP5.3.3+)+* En utilisant l’identification par formulaire (requiert JavaScript, et PHP 5.3.7+ recommandé – fonctionne avec certaines versions de PHP 5.3.3+)* En utilisant l’identification par [Mozilla Persona](https://login.persona.org/about) incluse dans FreshRSS* En utilisant un contrôle d’accès HTTP défini par votre serveur Web* Voir par exemple la [documentation d’Apache sur l’authentification](http://httpd.apache.org/docs/trunk/howto/auth.html)diff --git a/app/Models/Configuration.php b/app/Models/Configuration.phpindex 052e28ba8..bacb79510 100644--- a/app/Models/Configuration.php+++ b/app/Models/Configuration.php@@ -182,6 +182,9 @@ class FreshRSS_Configuration {public function _sharing ($values) {$this->data['sharing'] = array();foreach ($values as $value) {+ if (!is_array($value)) {+ continue;+ }if (array_key_exists('url', $value)) {$is_url = (filter_var ($value['url'], FILTER_VALIDATE_URL) ||diff --git a/app/i18n/en.php b/app/i18n/en.phpindex d4fd491a3..69c2fd310 100644--- a/app/i18n/en.php+++ b/app/i18n/en.php@@ -167,7 +167,7 @@ return array ('http_password' => 'HTTP password','blank_to_disable' => 'Leave blank to disable','share_name' => 'Share name to display',- 'share_url' => 'Share URL to use',+ 'share_url' => 'Share URL to use','not_yet_implemented' => 'Not yet implemented','access_protected_feeds' => 'Connection allows to access HTTP protected RSS feeds','no_selected_feed' => 'No feed selected.',diff --git a/app/i18n/fr.php b/app/i18n/fr.phpindex 7420e2fdd..452c560a7 100644--- a/app/i18n/fr.php+++ b/app/i18n/fr.php@@ -167,7 +167,7 @@ return array ('http_password' => 'Mot de passe HTTP','blank_to_disable' => 'Laissez vide pour désactiver','share_name' => 'Nom du partage à afficher',- 'share_url' => 'URL du partage à utiliser',+ 'share_url' => 'URL du partage à utiliser','not_yet_implemented' => 'Pas encore implémenté','access_protected_feeds' => 'La connexion permet d’accéder aux flux protégés par une authentification HTTP','no_selected_feed' => 'Aucun flux sélectionné.',diff --git a/app/views/configure/sharing.phtml b/app/views/configure/sharing.phtmlindex e46284955..b50e6ddc4 100644--- a/app/views/configure/sharing.phtml+++ b/app/views/configure/sharing.phtml@@ -48,4 +48,4 @@</div></div></form>-</div>\ No newline at end of file+</div>diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtmlindex f27984025..ff535c60a 100644--- a/app/views/helpers/view/normal_view.phtml+++ b/app/views/helpers/view/normal_view.phtml@@ -138,7 +138,7 @@ if (!empty($this->entries)) {<?php foreach ($sharing as $share) :?><li class="item share"><a target="_blank" href="<?php echo FreshRSS_Share::generateUrl($this->conf->shares, $share, $item->link(), $item->title() . ' . ' . $feed->name())?>">- <?php echo (array_key_exists('name', $share)) ? $share['name'] : Minz_Translate::t ($share['type']);?>+ <?php echo array_key_exists('name', $share) ? $share['name'] : Minz_Translate::t ($share['type']);?></a></li><?php endforeach;?>