protected function setupFile($originalFile, $cacheFile)
    {
        if (count($this->filters) > 0) {
            $this->checkNumberOfAllowedFilters($cacheFile);
            if ($this->options['checkReferrer']) {
                $this->checkReferrer();
            }
        }

        if (! file_exists($originalFile)) {
            // If we are using a placeholder and that exists, use it!
            if ($this->placeholder && file_exists($this->placeholder)) {
                $originalFile = $this->placeholder;
            }
        }

        parent::setupFile($originalFile, $cacheFile);
    }
protected function setupFile($originalFile, $cacheFile)
    {
        if (count($this->filters) > 0) {
            $this->checkNumberOfAllowedFilters($cacheFile);
            if ($this->options['checkReferrer']) {
                $this->checkReferrer();
            }
        }

        if (! file_exists($originalFile)) {
            // If we are using a placeholder and that exists, use it!
            if ($this->placeholder && file_exists($this->placeholder)) {
                $originalFile = $this->placeholder;
            }
        }

        parent::setupFile($originalFile, $cacheFile);
    }
protected function setupFile ( $ originalFile , $ cacheFile ) { if ( count ( $ this -> filters ) > 0 ) { $ this -> checkNumberOfAllowedFilters ( $ cacheFile ) ; if ( $ this -> options [ 'checkReferrer' ] ) { $ this -> checkReferrer ( ) ; } } if ( ! file_exists ( $ originalFile ) ) { // If we are using a placeholder and that exists, use it! if ( $ this -> placeholder && file_exists ( $ this -> placeholder ) ) { $ originalFile = $ this -> placeholder ; } } parent :: setupFile ( $ originalFile , $ cacheFile ) ; }
Overwrite the _setupFile function so placeholder images can be shown instead of broken images


@param string $originalFile
@param string $cacheFile
Overwrite the _setupFile function so placeholder images can be shown instead of broken images