Fixed static call, enabled site ID to be formated
This commit is contained in:
parent
56ee99dff3
commit
05d132c4be
@ -35,8 +35,8 @@ abstract class lnApp_Site {
|
|||||||
/**
|
/**
|
||||||
* Return the site configured language
|
* Return the site configured language
|
||||||
*/
|
*/
|
||||||
public static function ID() {
|
public static function ID($format=FALSE) {
|
||||||
return Kohana::$config->load('config')->id;
|
return $format ? sprintf('%02s',Kohana::$config->load('config')->id) : Kohana::$config->load('config')->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +23,7 @@ abstract class lnApp_StaticList_YesNo extends StaticList {
|
|||||||
|
|
||||||
return $format ? View::factory(Site::Theme().'/label/bool')
|
return $format ? View::factory(Site::Theme().'/label/bool')
|
||||||
->set('label',$value ? 'label-success' : '')
|
->set('label',$value ? 'label-success' : '')
|
||||||
->set('column',self::factory()->_get($value)) : $value;
|
->set('column',StaticList_YesNo::factory()->_get($value)) : $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user