From: Mikael Nordfeldth Date: Sat, 6 Jun 2015 14:02:25 +0000 (+0200) Subject: Moved FeedSubException parent class to own file X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4de125dd843359c8a705c7c76eb2aa5f74efce68;p=quix0rs-gnu-social.git Moved FeedSubException parent class to own file --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index ba50cb653d..7730f2e67c 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -30,19 +30,6 @@ if (!defined('GNUSOCIAL')) { exit(1); } set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/extlib/phpseclib'); -class FeedSubException extends Exception -{ - function __construct($msg=null) - { - $type = get_class($this); - if ($msg) { - parent::__construct("$type: $msg"); - } else { - parent::__construct($type); - } - } -} - class OStatusPlugin extends Plugin { /** diff --git a/plugins/OStatus/lib/feedsubexception.php b/plugins/OStatus/lib/feedsubexception.php new file mode 100644 index 0000000000..8d65881647 --- /dev/null +++ b/plugins/OStatus/lib/feedsubexception.php @@ -0,0 +1,13 @@ +