]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
mail paths for docfile
authorEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 13:03:28 +0000 (09:03 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 13:03:28 +0000 (09:03 -0400)
lib/docfile.php

index 9659a4332497b69020849333e5357f1d87ba4a2b..feba930b4337b39c5e545dd7345f512e89acb29c 100644 (file)
@@ -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