1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Get site path (www-root) from environment variable. (Won't work on IIS...)

This commit is contained in:
Hans-Emil Skogh 2011-12-12 21:21:07 +01:00 committed by Ciaran Gultnieks
parent 3693ae5f56
commit 7a58ab5e00

View File

@ -18,8 +18,7 @@ class FDroid
// Our text domain, for internationalisation
private $textdom='wp-fdroid';
// TODO: Fix site path...
private $site_path = "/home/hansemil/MyDocuments/f-droid";
private $site_path;
// Constructor
function FDroid() {
@ -27,6 +26,7 @@ class FDroid
add_shortcode('fdroidrepo',array($this, 'do_shortcode'));
add_filter('query_vars',array($this, 'queryvars'));
$this->inited=false;
$this->site_path=getenv('DOCUMENT_ROOT');
}