Skip to content

Commit 34d8354

Browse files
committed
Fixes bug in template class
1 parent 1607ec4 commit 34d8354

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

system/core/template.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class Template extends DataStore
2222
* Stores CSS includes for the template system
2323
*/
2424
private static $cssIncludes = array();
25-
2625

2726
/**
2827
* Checks if a value exists
@@ -71,7 +70,7 @@ public static function addCSS($file)
7170
*/
7271
public static function getJs()
7372
{
74-
$jsFiles = '';
73+
$jsList = '';
7574
if (is_array(self::$jsIncludes))
7675
{
7776
foreach(self::$jsIncludes as $js)
@@ -94,7 +93,7 @@ public static function getCSS()
9493
{
9594
foreach(self::$cssIncludes as $css)
9695
{
97-
$cssList .= '<script type="text/javascript" src="' . $css . '"></script>' . "\r\n";
96+
$cssList .= '<link href="' . $css . '" rel="stylesheet">' . "\r\n";
9897
}
9998
return $cssList;
10099
}

0 commit comments

Comments
 (0)