Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93926316
PhameSite.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Dec 2, 13:49
Size
547 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 13:49 (2 d)
Engine
blob
Format
Raw Data
Handle
22723330
Attached To
rPH Phabricator
PhameSite.php
View Options
<?php
abstract
class
PhameSite
extends
PhabricatorSite
{
protected
function
isPhameActive
()
{
$base_uri
=
PhabricatorEnv
::
getEnvConfig
(
'phabricator.base-uri'
);
if
(!
strlen
(
$base_uri
))
{
// Don't activate Phame if we don't have a base URI configured.
return
false
;
}
$phame_installed
=
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorPhameApplication'
);
if
(!
$phame_installed
)
{
// Don't activate Phame if the the application is uninstalled.
return
false
;
}
return
true
;
}
}
Event Timeline
Log In to Comment