Skip to content
Snippets Groups Projects
Commit baef155e authored by Demian Katz's avatar Demian Katz
Browse files

Merge pull request #624 from EreMaijala/dynamic-cover-config

Check makeDynamicCovers setting so that false actually works (ini rea…
parents 5a31c1d9 005e6f64
No related merge requests found
...@@ -261,7 +261,7 @@ class Loader extends \VuFind\ImageLoader ...@@ -261,7 +261,7 @@ class Loader extends \VuFind\ImageLoader
&& !$this->fetchFromContentType() && !$this->fetchFromContentType()
) { ) {
if (isset($this->config->Content->makeDynamicCovers) if (isset($this->config->Content->makeDynamicCovers)
&& false !== $this->config->Content->makeDynamicCovers && $this->config->Content->makeDynamicCovers
) { ) {
$this->image = $this->getCoverGenerator()->generate( $this->image = $this->getCoverGenerator()->generate(
$settings['title'], $settings['author'], $settings['callnumber'] $settings['title'], $settings['author'], $settings['callnumber']
...@@ -541,7 +541,7 @@ class Loader extends \VuFind\ImageLoader ...@@ -541,7 +541,7 @@ class Loader extends \VuFind\ImageLoader
} }
$image = $result->getBody(); $image = $result->getBody();
if ('' == $image) { if ('' == $image) {
return false; return false;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment