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;
}
/**