Changeset 2976

Show
Ignore:
Timestamp:
07/25/08 16:45:15 (3 months ago)
Author:
gcroes
Message:

Erreur de constante (DELETED)
C'est le libellé et non la clef i18n qui doit être retourné dans le getList
Utilisation du contexte dynamique et non statique

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/project/modules/devel/cms3/heading/classes/headingelementstatus.class.php

    r2915 r2976  
    4343     */ 
    4444    public function getList () { 
    45         return self::_getArray (); 
     45        return $this->_getArray (); 
    4646    } 
    4747     
     
    5252     */ 
    5353    private function _getArray (){ 
    54         return array (self::DRAFT       => 'heading.status.draft'
    55                       self::PROPOSED    => 'heading.status.proposed'
    56                       self::PLANNED     => 'heading.status.planned'
    57                       self::PUBLISHED   => 'heading.status.published'
    58                       self::ARCHIVE     => 'heading.status.archive'
    59                       self::DELETE     => 'heading.status.deleted' 
     54        return array (self::DRAFT       => _i18n ('heading|heading.status.draft')
     55                      self::PROPOSED    => _i18n ('heading|heading.status.proposed')
     56                      self::PLANNED     => _i18n ('heading|heading.status.planned')
     57                      self::PUBLISHED   => _i18n ('heading|heading.status.published')
     58                      self::ARCHIVE     => _i18n ('heading|heading.status.archive')
     59                      self::DELETED        => _i18n ('heading|heading.status.deleted') 
    6060                    ); 
    6161    }