Working on HOST SERVER and improvements to ORMOSB
This commit is contained in:
@@ -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