From 551a4e83241b7807bfe833075754cf72886a72de Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 18 Apr 2011 09:03:28 -0400 Subject: [PATCH] mail paths for docfile --- lib/docfile.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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