Mercurial > SimpleWebPresenter
diff Options.inc @ 39:bd82b719a0de
Make CacheTimeCheck a singleton.
Robustify if_modified_since check.
Quiet warnings.
Set debug levels.
Fix basepath references.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Fri, 05 Oct 2012 00:21:27 +0200 |
| parents | aec57ed6f5f6 |
| children | 66382989353f |
line wrap: on
line diff
--- a/Options.inc Thu Oct 04 22:07:19 2012 +0200 +++ b/Options.inc Fri Oct 05 00:21:27 2012 +0200 @@ -8,6 +8,7 @@ private $inputDefaults = array(); private $cache; private $urlParams = array(); + private $basePath; function getDefaultLang() { @@ -24,12 +25,20 @@ $this->lang = $lang; } + function getBasePath() + { + return $this->basePath; + } + + function setBasePath($basePath) + { + $this->basePath = $basePath; + } + function setUrlParams($urlParams) { foreach($urlParams as $key) { - $value = $_GET[$key]; - if (!$value) - $value = ''; + $value = array_key_exists($key, $_GET) ? $_GET[$key] : ''; $this->urlParams[$key] = $value; } }
