Changeset 36150 in spip-zone for _plugins_/protection_formulaires


Ignore:
Timestamp:
Mar 12, 2010, 5:20:51 PM (10 years ago)
Author:
real3t@…
Message:

Le bon chemin pour le js (ça ne marchait pas en ayant mis le plugin dans les extensions/ de SPIP 2.1.0-rc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/protection_formulaires/protection_formulaires.php

    r30140 r36150  
    11<?php
    22
    3 $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
    4 define('_DIR_PLUGIN_PROTEGER_FORMULAIRES',(_DIR_PLUGINS.end($p)));
    5 
    6 
    73function protection_formulaires_proteger($data) {
    8         $ret = '<script src="'._DIR_PLUGIN_PROTEGER_FORMULAIRES.'/javascript/proteger_formulaires.js" type="text/javascript"></script>';
     4        $ret = '<script src="'._DIR_PLUGIN_PROTECTION_FORMULAIRES.'/javascript/proteger_formulaires.js" type="text/javascript"></script>';
    95
    106
Note: See TracChangeset for help on using the changeset viewer.