From: Evan Prodromou Date: Mon, 18 Apr 2011 13:03:28 +0000 (-0400) Subject: mail paths for docfile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=551a4e83241b7807bfe833075754cf72886a72de;p=quix0rs-gnu-social.git mail paths for docfile --- 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