Changeset 29443 for _plugins_/crayons

Show
Ignore:
Timestamp:
27.06.2009 23:09:36 (8 months ago)
Author:
fil@…
Message:

compatibilite crayons avec le core 2.1 qui a perdu sa barre typo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _plugins_/crayons/action/crayons_html.php

    r28985 r29443  
    290290                                        include_spip('inc/barre'); 
    291291                                        $input = "<div style='width:".$this->largeur."px;height:23px;'>" 
    292                                                 . afficher_barre("document.getElementById('$id')") 
     292                                                . (function_exists('afficher_barre') 
     293                                                        ? afficher_barre("document.getElementById('$id')") 
     294                                                        : '') 
    293295                                                . '</div>' 
    294296                                                . $input;