mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
Hacks on Hacks
Summary: hack hack hack (`class_exists()` no longer throws in a libphutil environment.) Test Plan: derpaderp Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D15013
This commit is contained in:
parent
fdd5500fec
commit
bb6df2e5f3
1 changed files with 1 additions and 6 deletions
|
@ -10,12 +10,7 @@ final class ReleephDefaultFieldSelector extends ReleephFieldSelector {
|
||||||
* as possible. This obivously is an abomination. -epriestley
|
* as possible. This obivously is an abomination. -epriestley
|
||||||
*/
|
*/
|
||||||
public static function isFacebook() {
|
public static function isFacebook() {
|
||||||
try {
|
return class_exists('ReleephFacebookKarmaFieldSpecification');
|
||||||
class_exists('ReleephFacebookKarmaFieldSpecification');
|
|
||||||
return true;
|
|
||||||
} catch (Exception $ex) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue