Fixed static call, enabled site ID to be formated

This commit is contained in:
Deon George 2014-08-25 14:35:01 +10:00
parent 56ee99dff3
commit 05d132c4be
2 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ abstract class lnApp_Site {
/**
* Return the site configured language
*/
public static function ID() {
return Kohana::$config->load('config')->id;
public static function ID($format=FALSE) {
return $format ? sprintf('%02s',Kohana::$config->load('config')->id) : Kohana::$config->load('config')->id;
}
/**

View File

@ -23,7 +23,7 @@ abstract class lnApp_StaticList_YesNo extends StaticList {
return $format ? View::factory(Site::Theme().'/label/bool')
->set('label',$value ? 'label-success' : '')
->set('column',self::factory()->_get($value)) : $value;
->set('column',StaticList_YesNo::factory()->_get($value)) : $value;
}
}
?>