mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +02:00
Do not throw an error if something goes wrong.
This commit is contained in:
@ -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 != '' ) {
|
||||||
|
Reference in New Issue
Block a user