Changeset 95142 in spip-zone


Ignore:
Timestamp:
Feb 15, 2016, 10:54:23 AM (3 years ago)
Author:
p@…
Message:

Si Facebook n'est pas configurer, on affiche rien dans les articles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/facebook/trunk/facebook_pipelines.php

    r94971 r95142  
    1616function facebook_affiche_gauche($flux) {
    1717
    18         if ($flux['args']['exec'] == 'article') {
     18        $config = lire_config('facebook');
     19
     20        if ($flux['args']['exec'] == 'article'
     21            and (!empty($config['cle']) or !empty($config['secret']))) {
    1922                $flux['data'] .= recuperer_fond('prive/squelettes/gauche/facebook_affiche_gauche', $flux['args']);
    2023        }
Note: See TracChangeset for help on using the changeset viewer.