Skip to content

Commit

Permalink
Fixed issue: template-rtl.css not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Sep 25, 2017
1 parent fe46a53 commit 5ed0e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/TemplateConfiguration.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private function createTemplatePackage()
window.console = dummyConsole;
</script>";

if (getLanguageRTL(App()->language))
if (getLanguageRTL($this->oSurvey->language))
{
$oCssFiles = $this->config->files->rtl->css->filename; // In RTL mode, original CSS files should not be loaded, else padding-left could be added to padding-right.)
$oJsFiles = $this->config->files->rtl->js->filename; // In RTL mode,
Expand Down

2 comments on commit 5ed0e47

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? Strange , at this step App()->language MUST be equal to current language. Question $this->oSurvey->language is not the survey default language ?

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS : in fact : i can not reproduce template-rtl.css not loaded before this fix. Because it's done (pre-3.0) in template_replace if {TEMPLATECSS} is in template

Please sign in to comment.