Rack::init() is only called automatically if

needed when calling Rack::add(), since the other
methods won't work without add() first being
called.
This commit is contained in:
2010-01-13 15:35:06 +02:00
parent 2eff641a75
commit 58746b2ea9
2 changed files with 1 additions and 3 deletions

View File

@@ -62,7 +62,6 @@ class Rack {
public static function insert_before ($target, $name, $file = null) {
if ( !self::$ob_started ) self::init();
if ( !self::$constructed ) {
if ( array_key_exists($target, self::$middleware) ) {
$keys = array_keys(self::$middleware);
@@ -84,7 +83,6 @@ class Rack {
public static function insert_after ($target, $name, $file = null) {
if ( !self::$ob_started ) self::init();
if ( !self::$constructed ) {
if ( array_key_exists($target, self::$middleware) ) {
$keys = array_keys(self::$middleware);