From b0b30000c1613657e7e6405abf1c003bcfce716e Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Sun, 20 May 2012 14:53:04 +0200 Subject: [PATCH] Do not throw an error if something goes wrong. --- LinkTitles.body.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/LinkTitles.body.php b/LinkTitles.body.php index a5a0016..43fdbf3 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -75,9 +75,6 @@ '/(\b' . str_replace('/', '\/', $title) . '\b)([^\]]+(\[|$))/i', '[[$1]]$2', $new_text ); - if ( $new_text == '' ) { - throw new Exception( 'new text was deleted! - title: ' . $title ); - }; }; // if $title != $my_title }; // foreach $res as $row if ( $new_text != '' ) {