// Walk through all groups
foreach ($templateInstance->getVariableGroups() as $group => $set) {
// Set the group
- $templateInstance->setVariableGroup($group, FALSE);
+ $templateInstance->setVariableGroup($group, false);
// Compile image string
$imageString = $templateInstance->compileRawCode($this->getString());
*/
public function getContent () {
// Get cache file name
- $cacheFile = $this->getTemplateInstance()->getImageCacheFqfn();
+ $cacheFile = $this->getTemplateInstance()->getImageCacheFile();
+
+ // Open it for reading
+ $fileObject = $cacheFile->openFile('r');
+
+ // Rewind to beginning
+ $fileObject->rewind();
// Load the content
- $imageContent = file_get_contents($cacheFile);
+ $imageContent = $fileObject->fread($cacheFile->getSize());
// And return it
return $imageContent;