fix(i18n): language selection working on static pages

This commit is contained in:
Matteo Pagliazzi 2015-01-27 15:48:57 +01:00
parent b9784fa4aa
commit 42c0b443d7

View file

@ -4,7 +4,7 @@ angular.module('habitrpg').controller("FooterCtrl",
['$scope', '$rootScope', 'User', '$http', 'Notification', 'ApiUrl',
function($scope, $rootScope, User, $http, Notification, ApiUrl) {
if(typeof habitrpg === "undefined"){
if(env.isStaticPage){
$scope.languages = env.avalaibleLanguages;
$scope.selectedLanguage = _.find(env.avalaibleLanguages, {code: env.language.code});