Do not throw an error if something goes wrong.

This commit is contained in:
Daniel Kraus
2012-05-20 14:53:04 +02:00
parent b3c9afea70
commit b0b30000c1

View File

@ -75,9 +75,6 @@
'/(\b' . str_replace('/', '\/', $title) . '\b)([^\]]+(\[|$))/i', '/(\b' . str_replace('/', '\/', $title) . '\b)([^\]]+(\[|$))/i',
'[[$1]]$2', '[[$1]]$2',
$new_text ); $new_text );
if ( $new_text == '' ) {
throw new Exception( 'new text was deleted! - title: ' . $title );
};
}; // if $title != $my_title }; // if $title != $my_title
}; // foreach $res as $row }; // foreach $res as $row
if ( $new_text != '' ) { if ( $new_text != '' ) {