Development

Changeset 11776

You must first sign up to be able to contribute.

Changeset 11776

Show
Ignore:
Timestamp:
09/25/08 12:11:40 (6 years ago)
Author:
fabien
Message:

[1.1, 1.2] added an exception when there is no active configuration in sfProjectConfiguration::getActive()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/config/sfProjectConfiguration.class.php

    r10699 r11776  
    298298  static public function getActive() 
    299299  { 
     300    if (is_null(sfProjectConfiguration::$active)) 
     301    { 
     302      throw new RuntimeException('There is no active configuration.'); 
     303    } 
     304 
    300305    return sfProjectConfiguration::$active; 
    301306  } 
  • branches/1.2/lib/config/sfProjectConfiguration.class.php

    r11736 r11776  
    398398  static public function getActive() 
    399399  { 
     400    if (is_null(sfProjectConfiguration::$active)) 
     401    { 
     402      throw new RuntimeException('There is no active configuration.'); 
     403    } 
     404 
    400405    return sfProjectConfiguration::$active; 
    401406  }