Working on HOST SERVER and improvements to ORMOSB
This commit is contained in:
@@ -24,6 +24,10 @@ class lnApp_Block extends HTMLRender {
|
||||
* @param array Block attributes
|
||||
*/
|
||||
public static function add($block,$prepend=FALSE) {
|
||||
// Any body objects should be converted to a string, so that any calls to Style/Script are processed
|
||||
if (isset($block['body']))
|
||||
$block['body'] = (string)$block['body'];
|
||||
|
||||
parent::add($block);
|
||||
|
||||
// Detect any style sheets.
|
||||
|
@@ -15,6 +15,7 @@ class lnApp_Script extends HTMLRender {
|
||||
protected static $_spacer = "\n";
|
||||
protected static $_required_keys = array('type','data');
|
||||
protected static $_unique_vals = array('file'=>'type');
|
||||
protected static $_rendered = FALSE;
|
||||
|
||||
/**
|
||||
* Return an instance of this class
|
||||
@@ -47,7 +48,15 @@ class lnApp_Script extends HTMLRender {
|
||||
}
|
||||
}
|
||||
|
||||
static::$_rendered = TRUE;
|
||||
return $foutput.static::$_spacer.$soutput;
|
||||
}
|
||||
|
||||
public static function add($item,$prepend=FALSE,$x='') {
|
||||
if (static::$_rendered)
|
||||
throw new Kohana_Exception('Already rendered?');
|
||||
|
||||
return parent::add($item,$prepend);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user