Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from rehabstudio/feature/strict-warnings
Browse files Browse the repository at this point in the history
Fixed strict warning in flagImage method
  • Loading branch information
Florian Krämer committed May 11, 2014
2 parents 0830b22 + 91eac4c commit cf49e64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion View/Helper/I18nHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public function flagImage($lang, $options = array()) {
}

if (strpos($lang, '-') !== false) {
$flag = array_pop(explode('-', $lang));
$pieces = explode('-', $lang);
$flag = array_pop($pieces);
}

$result = $this->Html->image($options['basePath'] . $flag . '.png');
Expand Down

0 comments on commit cf49e64

Please sign in to comment.