Skip to content

Commit

Permalink
Fixed issue #13137: Cannot access theme editor
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 24, 2018
1 parent aba5cc3 commit 861a22e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/models/TemplateManifest.php
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 861a22e

Please sign in to comment.