diff --git a/lib/docfile.php b/lib/docfile.php index 9659a43324..feba930b43 100644 --- a/lib/docfile.php +++ b/lib/docfile.php @@ -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