Changeset 90350 in spip-zone


Ignore:
Timestamp:
Jun 19, 2015, 4:40:20 AM (6 years ago)
Author:
jack@…
Message:

La configuration commence à fonctionner dans le privé, mais elle n'est toujours pas prise en compte dans le public... Why ?
Nettoyage:
On commente "define('PLUGIN_Name', "pgn4spip");", c'est défini par défaut, non, le nom du plugin ?
On commente "ReadCurrentConfiguration?($optValue);" qui ne semble pas utilisé en SPIP 3, sauf dans le fichier pgn4spip_conf.php

Location:
_plugins_/pgn4spip/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/pgn4spip/trunk/formulaires/configurer_pgn4spip.php

    r66136 r90350  
    1313 **********************************************************************************/
    1414if (!defined("_ECRIRE_INC_VERSION")) return; // No direct access allowed to this file
    15 define('PLUGIN_Name', "pgn4spip");
     15//define('PLUGIN_Name', "pgn4spip");
    1616define('PLUGIN_Form', "configurer_" . PLUGIN_Name);
    17 define('PATH_Conf', PLUGIN_Name . '/' . PLUGIN_Name . '_conf.php');
     17define('PATH_Conf', find_in_path(pgn4spip_fonctions.php));
    1818if (!function_exists('InitOptionValueByDefault')) require _DIR_PLUGINS . PATH_Conf;
    1919
  • _plugins_/pgn4spip/trunk/modeles/pgn.html

    r90316 r90350  
    2727<BOUCLE_pgn(DOCUMENTS){id_document=#ENV{id}}{extension==pgn}{tout}>
    2828<?php
    29 define('PLUGIN_Name', "pgn4spip");
     29//define('PLUGIN_Name', "pgn4spip");
    3030define('PATH_Fonctions', find_in_path(pgn4spip_fonctions.php));
    31 if (!function_exists('pgn4spip_prepropre')) require _DIR_PLUGINS . PATH_Fonctions;
     31if (!function_exists('pgn4spip_prepropre')) require find_in_path(pgn4spip_fonctions);
     32
    3233
    3334define('QUOTE_HTML', '&quot;'); // '"' in HTML
  • _plugins_/pgn4spip/trunk/paquet.xml

    r90316 r90350  
    22        prefix="pgn4spip"
    33        categorie="divers"
    4         version="2.61.6"
     4        version="2.61.7"
    55        etat="test"
    66        compatibilite="[3.0.0;3.1.*]"
  • _plugins_/pgn4spip/trunk/pgn4spip_conf.php

    r66136 r90350  
    4545                foreach ($optValue as $optShort => $valueByDefault)
    4646                {
    47                         $valueFromConf = lire_config(PLUGIN_Name . '/cfg_' . $optShort, $valueByDefault);
     47                        $valueFromConf = lire_config('pgn4spip/cfg_' . $optShort, $valueByDefault);
    4848                        if (IsOptionValueOk($optShort, $valueFromConf, $valueByDefault))
    4949                        {
     
    5151                        }
    5252                }                       
    53                 $isManual = lire_config(PLUGIN_Name . '/cfg_isManual');
     53                $isManual = lire_config('pgn4spip/cfg_isManual');
    5454                if ($isManual != '')
    5555                {
    56                         $optValue['fh'] = lire_config(PLUGIN_Name . '/cfg_height_site', ""); // height of the module
     56                        $optValue['fh'] = lire_config('pgn4spip/cfg_height_site', ""); // height of the module
    5757                }
    5858        }
     
    135135        return false;
    136136}
    137 ?>
  • _plugins_/pgn4spip/trunk/pgn4spip_fonctions.php

    r90315 r90350  
    3636if (!defined("_ECRIRE_INC_VERSION")) return; // No direct access allowed to this file
    3737
    38 define('PLUGIN_Name', "pgn4spip");
    39 define('PATH_Conf', 'find_in_path(pgn4spip_conf.php)');
    40 if (!function_exists('ReadCurrentConfiguration')) require _DIR_PLUGIN_PGN4SPIP . PATH_Conf;
     38//define('PLUGIN_Name', "pgn4spip");
     39//define('PATH_Conf', 'find_in_path(pgn4spip_conf.php)');
     40//if (!function_exists('ReadCurrentConfiguration')) require _DIR_PLUGIN_PGN4SPIP . PATH_Conf;
    4141
    4242define('TAG_pgn', "[pP][gG][nN]"); // pgn or PGN
  • _plugins_/pgn4spip/trunk/pgn4spip_options.php

    r90315 r90350  
    1818
    1919// Init $optValue with default values of options overriden with the current configuration
    20 ReadCurrentConfiguration($optValue); // read from the config form
     20//ReadCurrentConfiguration($optValue); // read from the config form
Note: See TracChangeset for help on using the changeset viewer.