mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +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
|
||||
*/
|
||||
public static function isFacebook() {
|
||||
try {
|
||||
class_exists('ReleephFacebookKarmaFieldSpecification');
|
||||
return true;
|
||||
} catch (Exception $ex) {
|
||||
return false;
|
||||
}
|
||||
return class_exists('ReleephFacebookKarmaFieldSpecification');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue