git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 551a4e83 authored by Evan Prodromou's avatar Evan Prodromou

mail paths for docfile

parent 9bfade75
......@@ -113,6 +113,20 @@ class DocFile
return $paths;
}
static function mailPaths()
{
$paths = array(INSTALLDIR.'/local/mail-src/',
INSTALLDIR.'/mail-src/');
$site = StatusNet::currentSite();
if (!empty($site)) {
array_unshift($paths, INSTALLDIR.'/local/mail-src/'.$site.'/');
}
return $paths;
}
static function negotiateLanguage($filenames, $defaultFilename=null)
{
// XXX: do this better
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment