Moved FeedSubException parent class to own file
This commit is contained in:
parent
268b901048
commit
4de125dd84
|
@ -30,19 +30,6 @@ if (!defined('GNUSOCIAL')) { exit(1); }
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/extlib/phpseclib');
|
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
|
class OStatusPlugin extends Plugin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
13
plugins/OStatus/lib/feedsubexception.php
Normal file
13
plugins/OStatus/lib/feedsubexception.php
Normal file
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user