Fix too many logs
This commit is contained in:
parent
b3d2d50a0c
commit
8bc639fe02
@ -136,9 +136,8 @@ class Odf
|
|||||||
// instead of {aaa} so we should enhance this function.
|
// instead of {aaa} so we should enhance this function.
|
||||||
//print $key.'-'.$value.'-'.strpos($this->contentXml, $this->config['DELIMITER_LEFT'] . $key . $this->config['DELIMITER_RIGHT']).'<br>';
|
//print $key.'-'.$value.'-'.strpos($this->contentXml, $this->config['DELIMITER_LEFT'] . $key . $this->config['DELIMITER_RIGHT']).'<br>';
|
||||||
if (strpos($this->contentXml, $tag) === false && strpos($this->stylesXml, $tag) === false) {
|
if (strpos($this->contentXml, $tag) === false && strpos($this->stylesXml, $tag) === false) {
|
||||||
//if (strpos($this->contentXml, '">'. $key . '</text;span>') === false) {
|
// Add the throw only for development. In most cases, it is normal to not having the key into the document (only few keys are presents).
|
||||||
throw new OdfException("var $key not found in the document");
|
//throw new OdfException("var $key not found in the document");
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->vars[$tag] = $this->convertVarToOdf($value, $encode, $charset);
|
$this->vars[$tag] = $this->convertVarToOdf($value, $encode, $charset);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user