Skip to content

Commit

Permalink
Update Settings.php (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmuhittin authored and nWidart committed May 7, 2016
1 parent a01b260 commit 83d43b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Support/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function get($name, $locale = null, $default = null)
{
$defaultFromConfig = $this->getDefaultFromConfigFor($name);

$setting = $this->setting->get($name);
$setting = $this->setting->findByName($name); //before that change I could not fetch any setting!!!
if (! $setting) {
return is_null($default) ? $defaultFromConfig : $default;
}
Expand Down

0 comments on commit 83d43b9

Please sign in to comment.