do not read preview width from settings if not set

This commit is contained in:
Uwe Steinmann 2014-03-20 08:17:46 +01:00
parent 134915aa71
commit ac630948da

View File

@ -309,7 +309,9 @@ class Settings { /* {{{ */
$this->_printDisclaimer = Settings::boolVal($tab["printDisclaimer"]); $this->_printDisclaimer = Settings::boolVal($tab["printDisclaimer"]);
$this->_language = strval($tab["language"]); $this->_language = strval($tab["language"]);
$this->_theme = strval($tab["theme"]); $this->_theme = strval($tab["theme"]);
if(isset($tab["previewWidthList"]))
$this->_previewWidthList = intval($tab["previewWidthList"]); $this->_previewWidthList = intval($tab["previewWidthList"]);
if(isset($tab["previewWidthDetail"]))
$this->_previewWidthDetail = intval($tab["previewWidthDetail"]); $this->_previewWidthDetail = intval($tab["previewWidthDetail"]);
// XML Path: /configuration/site/edition // XML Path: /configuration/site/edition