Minor internal layout changes

This commit is contained in:
Deon George
2012-01-12 19:53:33 +11:00
parent 14d5f1939e
commit 9e21f60066
3 changed files with 18 additions and 19 deletions

View File

@@ -34,18 +34,13 @@ class lnApp_Script extends HTMLRender {
$foutput = $soutput = '';
$mediapath = Route::get(static::$_media_path);
$i = $j = 0;
foreach (static::$_data as $value) {
switch ($value['type']) {
case 'file':
$foutput .= HTML::script($mediapath->uri(array('file'=>$value['data'])));
if ($i++)
$foutput .= static::$_spacer;
break;
case 'stdin':
$soutput .= sprintf("<script type=\"text/javascript\">//<![CDATA[\n%s\n//]]></script>",$value['data']);
if ($j++)
$soutput .= static::$_spacer;
break;
default:
throw new Kohana_Exception('Unknown style type :type',array(':type'=>$value['type']));