Mercurial > SimpleWebPresenter
comparison InputParser.inc @ 130:ee5f98a0bc93
Retrieve documents from DOCUMENT_ROOT, not SCRIPT_ROOT
| author | Tom Fredrik Blenning <bfg@bfgconsult.no> |
|---|---|
| date | Fri, 13 Jan 2023 18:08:45 +0100 |
| parents | 7858ceb293d1 |
| children |
comparison
equal
deleted
inserted
replaced
| 129:16c3ee204330 | 130:ee5f98a0bc93 |
|---|---|
| 29 $this->master->load($name); | 29 $this->master->load($name); |
| 30 | 30 |
| 31 $this->options = new Options($this->master); | 31 $this->options = new Options($this->master); |
| 32 $this->options->setCache($cache); | 32 $this->options->setCache($cache); |
| 33 $base=basePath(); | 33 $base=basePath(); |
| 34 $base=$_SERVER['CONTEXT_DOCUMENT_ROOT']; | 34 $base=$_SERVER['DOCUMENT_ROOT']; |
| 35 $this->options->setBasePath($base); | 35 $this->options->setBasePath($base); |
| 36 $this->options->setCacheable(true); | 36 $this->options->setCacheable(true); |
| 37 | 37 |
| 38 $this->options->setUrlParams(array('name', 'lang')); | 38 $this->options->setUrlParams(array('name', 'lang')); |
| 39 | 39 |
