From: <gem...@li...> - 2011-09-28 10:11:54
|
Revision: 83 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=83&view=rev Author: mennodekker Date: 2011-09-28 10:11:45 +0000 (Wed, 28 Sep 2011) Log Message: ----------- Fix for order of css, to allow form css to come last Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-09-27 17:28:46 UTC (rev 82) +++ trunk/library/classes/GemsEscort.php 2011-09-28 10:11:45 UTC (rev 83) @@ -536,7 +536,9 @@ { // Set CSS stylescheet(s) if (isset($this->project->css)) { - foreach ((array) $this->project->css as $css) { + $projectCss = (array) $this->project->css; + $projectCss = array_reverse($projectCss); + foreach ($projectCss as $css) { if (is_array($css)) { $media = $css['media']; $url = $css['url']; @@ -544,7 +546,7 @@ $url = $css; $media = 'screen'; } - $this->view->headLink()->appendStylesheet($this->basepath->getBasePath() . '/' . $url, $media); + $this->view->headLink()->prependStylesheet($this->basepath->getBasePath() . '/' . $url, $media); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |