Skip to content

Commit

Permalink
Disable htmlpurifier cache if not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
harmenjanssen committed Mar 16, 2017
1 parent 5c3e560 commit 2ff938d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Garp/Model/Behavior/HtmlFilterable.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function getConfig() {

// add proprietary elements
if ($def = $config->maybeGetRawHTMLDefinition()) {
print("adding html5 elements\n");
$this->_addHtml5Elements($def);
$iframe = $def->addElement(
'iframe', // name
Expand Down Expand Up @@ -170,7 +171,7 @@ protected function _getCachePath() {
if (isset($config->htmlFilterable->cachePath)) {
return $config->htmlFilterable->cachePath;
}
return sys_get_temp_dir();
return null;
}

protected function _addHtml5Elements($def) {
Expand Down

0 comments on commit 2ff938d

Please sign in to comment.