diff --git a/application/models/TemplateManifest.php b/application/models/TemplateManifest.php index ab9e4d1e3e2..076fdeec528 100755 --- a/application/models/TemplateManifest.php +++ b/application/models/TemplateManifest.php @@ -122,6 +122,10 @@ public function getContentForScreen($sScreen) // The path of the file is defined inside the theme itself. $aExplodedFile = explode(DIRECTORY_SEPARATOR, $file); $sFormatedFile = end($aExplodedFile); + + // The file extension (.twig) is defined inside the theme itself. + $aExplodedFile = explode('.', $sFormatedFile ); + $sFormatedFile = $aExplodedFile[0]; return (string) $sFormatedFile; } }