Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/storage/PhamePost.php
| Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | final class PhamePost extends PhameDAO | ||||
| } | } | ||||
| public function getCommentsWidgetOptionsForSelect() { | public function getCommentsWidgetOptionsForSelect() { | ||||
| $current = $this->getCommentsWidget(); | $current = $this->getCommentsWidget(); | ||||
| $options = array(); | $options = array(); | ||||
| if ($current == 'facebook' || | if ($current == 'facebook' || | ||||
| PhabricatorFacebookAuthProvider::getFacebookApplicationID()) { | PhabricatorFacebookAuthProvider::getFacebookApplicationID()) { | ||||
| $options['facebook'] = 'Facebook'; | $options['facebook'] = pht('Facebook'); | ||||
| } | } | ||||
| if ($current == 'disqus' || | if ($current == 'disqus' || | ||||
| PhabricatorEnv::getEnvConfig('disqus.shortname')) { | PhabricatorEnv::getEnvConfig('disqus.shortname')) { | ||||
| $options['disqus'] = 'Disqus'; | $options['disqus'] = pht('Disqus'); | ||||
| } | } | ||||
| $options['none'] = 'None'; | $options['none'] = pht('None'); | ||||
| return $options; | return $options; | ||||
| } | } | ||||
| /* -( PhabricatorPolicyInterface Implementation )-------------------------- */ | /* -( PhabricatorPolicyInterface Implementation )-------------------------- */ | ||||
| ▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines | |||||