Changeset 47780 in spip-zone


Ignore:
Timestamp:
May 14, 2011, 11:17:36 AM (8 years ago)
Author:
patfr@…
Message:

1er pas vers SPIP 3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/couteau_suisse/cout_options.php

    r43855 r47780  
    3535$GLOBALS['spip_version_code'] = str_replace(',','.',$GLOBALS['spip_version_code']);
    3636// constantes de compatibilite
    37 // (pour info : SPIP 2.0 => 12691, SPIP 2.1 => 15133, SPIP 2.2 => ??)
    38 if (!strncmp($GLOBALS['spip_version_affichee'],'2.2',3))
     37// (pour info : SPIP 2.0 => 12691, SPIP 2.1 => 15133, SPIP 2.2 => ??, , SPIP 3.0 => 17743)
     38if ($GLOBALS['spip_version_code']>=17743)
     39        { @define('_SPIP30000', 1); @define('_SPIP20200', 1); @define('_SPIP20100', 1); @define('_SPIP19300', 1); @define('_SPIP19200', 1); }
     40elseif (!strncmp($GLOBALS['spip_version_affichee'],'2.2',3))
    3941        { @define('_SPIP20200', 1); @define('_SPIP20100', 1); @define('_SPIP19300', 1); @define('_SPIP19200', 1); }
    4042elseif ($GLOBALS['spip_version_code']>=15133)
Note: See TracChangeset for help on using the changeset viewer.