[SPIP Zone] [Spip-zone-commit] r28637 - /_plugins_/_stable_/spip-meteo/meteo_options.php

Hello,

Ces define étaient un bien vilain hack utilisé en spip 1.9.x, mais clairement source de bug.
SPIP definit maintenant automatiquement _DIR_PLUGIN_PREFIX
Quand a _NOM_PLUGIN_METEO tu ne devrais pas du tout en avoir besoin, ou alors c'est mauvais signe ...

Ma remarque vaut pour toute ta série de commit :stuck_out_tongue:

Cédric

Le 14 mai 09 à 14:12, pierre.basson@gmail.com a écrit :

Author: pierre.basson@gmail.com
Date: Thu May 14 14:12:08 2009
New Revision: 28637

Log:
spip-meteo : exit test define options

Modified:
   _plugins_/_stable_/spip-meteo/meteo_options.php

Modified: _plugins_/_stable_/spip-meteo/meteo_options.php

--- _plugins_/_stable_/spip-meteo/meteo_options.php (original)
+++ _plugins_/_stable_/spip-meteo/meteo_options.php Thu May 14 14:12:08 2009
@@ -13,11 +13,9 @@
   **/

- if (!defined('_DIR_PLUGIN_METEO')) {
    $p = explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
    define('_DIR_PLUGIN_METEO', (_DIR_PLUGINS.end($p)));
    define('_NOM_PLUGIN_METEO', (end($p)));
- }

?>
\ No newline at end of file

_______________________________________________
Spip-zone-commit@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone-commit

Ah cool, bonne découverte ! Merci, désolé vous allez voir passer une autre série de commit sous peu...

Le 14 mai 09 à 15:17, cedric.morin@yterium.com a écrit :

Hello,

Ces define étaient un bien vilain hack utilisé en spip 1.9.x, mais clairement source de bug.
SPIP definit maintenant automatiquement _DIR_PLUGIN_PREFIX
Quand a _NOM_PLUGIN_METEO tu ne devrais pas du tout en avoir besoin, ou alors c'est mauvais signe ...

Ma remarque vaut pour toute ta série de commit :stuck_out_tongue:

Cédric

Le 14 mai 09 à 14:12, pierre.basson@gmail.com a écrit :

Author: pierre.basson@gmail.com
Date: Thu May 14 14:12:08 2009
New Revision: 28637

Log:
spip-meteo : exit test define options

Modified:
  _plugins_/_stable_/spip-meteo/meteo_options.php

Modified: _plugins_/_stable_/spip-meteo/meteo_options.php

--- _plugins_/_stable_/spip-meteo/meteo_options.php (original)
+++ _plugins_/_stable_/spip-meteo/meteo_options.php Thu May 14 14:12:08 2009
@@ -13,11 +13,9 @@
   **/

- if (!defined('_DIR_PLUGIN_METEO')) {
    $p = explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
    define('_DIR_PLUGIN_METEO', (_DIR_PLUGINS.end($p)));
    define('_NOM_PLUGIN_METEO', (end($p)));
- }

?>
\ No newline at end of file

_______________________________________________
Spip-zone-commit@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone-commit

_______________________________________________
spip-zone@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone