Skip to content

Commit

Permalink
This should have been added back when we commited the changes to enab…
Browse files Browse the repository at this point in the history
…le conditions... Whoops...
  • Loading branch information
joeynovak committed Apr 7, 2014
1 parent 873ddb4 commit c1a535f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions htrouter/Classes/Module/Rewrite/Rule.php
Expand Up @@ -445,4 +445,17 @@ static public function expandSubstitutions($string, \HTRouter\Request $request,
return $string;
}

public function testConditions(){
foreach($this->_conditions as $condition){
/**
* @var Condition $condition
*/
$matched = $condition->matches($this->_request);
if(!$matched){
return false;
}
}
return true;
}

}

0 comments on commit c1a535f

Please sign in to comment.