Skip to content

Commit

Permalink
fail and warn if url_rewrite is invalid.
Browse files Browse the repository at this point in the history
  • Loading branch information
roojs committed Apr 4, 2004
1 parent 85fd5cf commit d7e1fae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Flexy/Compiler/Standard/Tag.php
Expand Up @@ -631,6 +631,10 @@ function reWriteURL($which)

foreach ($bits as $bit) {
$parts = explode (':', $bit);
if (!isset($parts[1])) {
PEAR::raiseError('HTML_Template_Flexy: url_rewrite syntax incorrect'.
print_r($bits,true),null,PEAR_ERROR_DIE);
}
$new = preg_replace('#^'.$parts[0].'#',$parts[1], $new);
}

Expand Down

0 comments on commit d7e1fae

Please sign in to comment.