mail paths for docfile

This commit is contained in:
Evan Prodromou 2011-04-18 09:03:28 -04:00
parent 9bfade7573
commit 551a4e8324

View File

@ -113,6 +113,20 @@ class DocFile
return $paths; 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) static function negotiateLanguage($filenames, $defaultFilename=null)
{ {
// XXX: do this better // XXX: do this better