mirror of
https://github.com/jimeh/php-rack.git
synced 2026-02-19 11:56:38 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user