Changeset 52369 in spip-zone for _plugins_/seo/pipelines/seo_insert_head.php
- Timestamp:
- Oct 3, 2011, 1:11:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/seo/pipelines/seo_insert_head.php
r49750 r52369 15 15 $config = unserialize($GLOBALS['meta']['seo']); 16 16 if ($config['insert_head']['activate'] == 'yes') { 17 if (count($GLOBALS['contexte']) == 0) { 17 $contexte = $GLOBALS['contexte']; 18 unset($contexte['lang']); 19 if (count($contexte) == 0) { 18 20 $type_object = 'sommaire'; 19 } elseif (is Set($GLOBALS['contexte']['id_article'])) {20 $id_object = $ GLOBALS['contexte']['id_article'];21 } elseif (isset($contexte['id_article'])) { 22 $id_object = $contexte['id_article']; 21 23 $type_object = 'article'; 22 } elseif (is Set($GLOBALS['contexte']['id_rubrique'])) {23 $id_object = $ GLOBALS['contexte']['id_rubrique'];24 } elseif (isset($contexte['id_rubrique'])) { 25 $id_object = $contexte['id_rubrique']; 24 26 $type_object = 'rubrique'; 25 27 } 26 27 28 /* META TAGS */ 28 29 if ($config['meta_tags']['activate'] == 'yes') {
Note: See TracChangeset
for help on using the changeset viewer.