mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Get site path (www-root) from environment variable. (Won't work on IIS...)
This commit is contained in:
parent
3693ae5f56
commit
7a58ab5e00
1 changed files with 2 additions and 2 deletions
|
|
@ -18,8 +18,7 @@ class FDroid
|
||||||
// Our text domain, for internationalisation
|
// Our text domain, for internationalisation
|
||||||
private $textdom='wp-fdroid';
|
private $textdom='wp-fdroid';
|
||||||
|
|
||||||
// TODO: Fix site path...
|
private $site_path;
|
||||||
private $site_path = "/home/hansemil/MyDocuments/f-droid";
|
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
function FDroid() {
|
function FDroid() {
|
||||||
|
|
@ -27,6 +26,7 @@ class FDroid
|
||||||
add_shortcode('fdroidrepo',array($this, 'do_shortcode'));
|
add_shortcode('fdroidrepo',array($this, 'do_shortcode'));
|
||||||
add_filter('query_vars',array($this, 'queryvars'));
|
add_filter('query_vars',array($this, 'queryvars'));
|
||||||
$this->inited=false;
|
$this->inited=false;
|
||||||
|
$this->site_path=getenv('DOCUMENT_ROOT');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue