From: darksider3 <leon@darksider3.de>
Date: Mon, 3 Mar 2014 16:10:50 +0000 (+0000)
Subject: Remove exception for generally problems.
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a29a88b6d322681464c0e6c1cca1f704aa9d8e99;p=quix0rs-gnu-social.git

Remove exception for generally problems.
---

diff --git a/lib/urlshortenerplugin2.php b/lib/urlshortenerplugin2.php
index af46da612a..dc1701ccbd 100644
--- a/lib/urlshortenerplugin2.php
+++ b/lib/urlshortenerplugin2.php
@@ -83,7 +83,6 @@ class PluginErrorException extends Exception {
 function exception_error_handler($errno, $errstr, $errfile, $errline ) {
     throw new PluginErrorException($errstr, 0, $errno, $errfile, $errline);
 }
-set_error_handler("exception_error_handler", E_ALL);
 
 /* the Exceptionhandler for Syntax-Errors, throwed by PHP itself */
 /**
@@ -91,7 +90,7 @@ set_error_handler("exception_error_handler", E_ALL);
  *
  * @category Plugin
  * @package  StatusNet
- * @author   Leon Giesenkaemper <leon@darksider3.de>
+ * @author   Craig Andrews <candrews@integralblue.com>
  * @license  http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link     http://darksider3.de/sn/urlshortenerplugin2.html
  */
@@ -124,12 +123,8 @@ abstract class UrlShortenerPlugin2
   {
     try
     {
-      //Or create exception here, by looking for 'false'...? Hmm..
-      //No, let HTTPClient throw it. But then we need a more generally
-      //Exception system.
       $request  = HTTPClient::start();
       $response = $request->get($url);
-
     } catch(PluginErrorException $e)
     {
       $e->printFull();