Skip to content

Instantly share code, notes, and snippets.

@Viper-7
Forked from anonymous/gist:e3e1bbf3620078f8564e
Last active August 29, 2015 14:04
Show Gist options
  • Save Viper-7/aaa2907e282c87afa022 to your computer and use it in GitHub Desktop.
Save Viper-7/aaa2907e282c87afa022 to your computer and use it in GitHub Desktop.
private function decideOnLocaleId ()
{
if ( is_null ( $this -> localeId ) )
{
var_dump ( $this -> plansLangs -> getLocales () -> getRes () ) ;
var_dump ( $this -> plansLangs -> getLocales () -> getRes () ) ;
$locales = $this -> plansLangs -> getLocales () -> getRes () ;
var_dump ( $locales ) ;//NULL
return $locales[ 0 ][ $this -> plansLangs -> getLocales () -> getPkName () ] ;
}
return $this -> localeId ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment