Fixed static call, enabled site ID to be formated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user