Improvements to invoice display and other misc items
This commit is contained in:
@@ -73,10 +73,10 @@ class Config extends Kohana_Config {
|
||||
|
||||
/**
|
||||
* Show a date using a site configured format
|
||||
* @note We need this function here, since we call static:: methods, which need to resolve to the child class.
|
||||
* @note We need this function here, since we call self:: methods, which need to resolve to the child class.
|
||||
*/
|
||||
public static function datetime($date) {
|
||||
return sprintf('%s %s',static::date($date),static::time($date));
|
||||
return sprintf('%s %s',self::date($date),self::time($date));
|
||||
}
|
||||
|
||||
public static function language() {
|
||||
@@ -96,13 +96,13 @@ class Config extends Kohana_Config {
|
||||
}
|
||||
|
||||
public static function logo() {
|
||||
return HTML::image(static::logo_uri(),array('class'=>'headlogo','alt'=>_('Logo')));
|
||||
return HTML::image(self::logo_uri(),array('class'=>'headlogo','alt'=>_('Logo')));
|
||||
}
|
||||
|
||||
public static function logo_uri($protocol=NULL) {
|
||||
list ($path,$suffix) = explode('.',static::$logo);
|
||||
list ($path,$suffix) = explode('.',self::$logo);
|
||||
|
||||
return URL::site(Route::get('default/media')->uri(array('file'=>$path.'.'.$suffix),array('alt'=>static::sitename())),$protocol);
|
||||
return URL::site(Route::get('default/media')->uri(array('file'=>$path.'.'.$suffix),array('alt'=>self::sitename())),$protocol);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -138,7 +138,7 @@ class Config extends Kohana_Config {
|
||||
}
|
||||
|
||||
public static function module_exist($module) {
|
||||
return array_key_exists(strtolower($module),static::modules()) ? TRUE : FALSE;
|
||||
return array_key_exists(strtolower($module),self::modules()) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user