Changeset 125301 in spip-zone


Ignore:
Timestamp:
Jun 24, 2020, 3:36:06 PM (6 weeks ago)
Author:
Matthieu Marcillaud
Message:

Le plugin s’affiche uniquement sur les objets spécifiques, pas sur la médiathèque.

Location:
_plugins_/videos/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/videos/trunk

    • Property subgit:lock:28b9ea855e885b52b8bfd62ad73a004b3e27d2b8 deleted
    • Property subgit:lock:d3bbfd13530effccfc8feb21f7985090624fb60f set to 2020-06-24T17:36:28.128
  • _plugins_/videos/trunk/videos_pipelines.php

    r96379 r125301  
    6767 */
    6868function videos_formulaire_fond($flux) {
    69         if ($flux['args']['form'] == 'joindre_document') {
     69        if (
     70                $flux['args']['form'] == 'joindre_document'
     71                and !empty($flux['args']['contexte']['objet'])
     72                and !empty($flux['args']['contexte']['id_objet'])
     73        ) {
    7074                $videos = recuperer_fond(
    7175                        'prive/contenu/videos_affiche_boite',
Note: See TracChangeset for help on using the changeset viewer.