]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moved FeedSubException parent class to own file
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 6 Jun 2015 14:02:25 +0000 (16:02 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 6 Jun 2015 14:02:25 +0000 (16:02 +0200)
plugins/OStatus/OStatusPlugin.php
plugins/OStatus/lib/feedsubexception.php [new file with mode: 0644]

index ba50cb653dafcb6205a653a19872c635bd5e0c65..7730f2e67c95b02b415b2c8916d59430bc74a4e5 100644 (file)
@@ -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 (file)
index 0000000..8d65881
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+class FeedSubException extends Exception
+{
+    function __construct($msg=null)
+    {
+        $type = get_class($this);
+        if ($msg) {
+            parent::__construct("$type: $msg");
+        } else {
+            parent::__construct($type);
+        }
+    }
+}