Changeset 109051 in spip-zone


Ignore:
Timestamp:
Feb 20, 2018, 9:43:46 AM (21 months ago)
Author:
teddy.spip@…
Message:

Eviter un warning PHP. Up de z.

Location:
_plugins_/onglets_texte/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/onglets_texte/trunk/onglets_texte_pipelines.php

    r104854 r109051  
    66
    77
     8$p = explode(basename(_DIR_PLUGINS) . "/", str_replace('\\', '/', realpath(dirname(__FILE__))));
     9if (!defined('_DIR_PLUGIN_ONGLETS_TEXTE')) {
     10        define('_DIR_PLUGIN_ONGLETS_TEXTE', (_DIR_PLUGINS . end($p)));
     11}
    812
    9 $p = explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
    10 define('_DIR_PLUGIN_ONGLETS_TEXTE',(_DIR_PLUGINS.end($p)));
     13function onglets_texte_insert_head($flux) {
     14        $flux .= '<script type="text/javascript" src="' . find_in_path('javascript/mes_onglets.js') . '"></script>';
    1115
    12 function onglets_texte_insert_head($flux){
    13         $flux .= '<script type="text/javascript" src="'.find_in_path('javascript/mes_onglets.js').'"></script>';
    1416        return $flux;
    1517}
    1618
    17 function onglets_texte_insert_head_css($flux){
    18         $flux .= '<link rel="stylesheet" href="'.find_in_path('css/tab.css').'" type="text/css" media="all" />';
     19function onglets_texte_insert_head_css($flux) {
     20        $flux .= '<link rel="stylesheet" href="' . find_in_path('css/tab.css') . '" type="text/css" media="all" />';
     21
    1922        return $flux;
    2023}
  • _plugins_/onglets_texte/trunk/paquet.xml

    r104854 r109051  
    22        prefix="onglets_texte"
    33        categorie="edition"
    4         version="2.0.3"
     4        version="2.0.4"
    55        etat="dev"
    66        compatibilite="[3.0.0;3.2.*]"
Note: See TracChangeset for help on using the changeset viewer.