From: <gem...@li...> - 2013-02-04 13:41:52
|
Revision: 1132 http://sourceforge.net/p/gemstracker/code/1132 Author: mennodekker Date: 2013-02-04 13:41:50 +0000 (Mon, 04 Feb 2013) Log Message: ----------- Pdf export needs full url to css files Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2013-01-31 15:15:45 UTC (rev 1131) +++ trunk/library/classes/GemsEscort.php 2013-02-04 13:41:50 UTC (rev 1132) @@ -729,7 +729,12 @@ $url = $css; $media = 'screen'; } - $this->view->headLink()->prependStylesheet($this->basepath->getBasePath() . '/' . $url, $media); + // When exporting to pdf, we need full urls + if (substr($url,0,4) == 'http') { + $this->view->headLink()->prependStylesheet($url, $media); + } else { + $this->view->headLink()->prependStylesheet($this->view->serverUrl() . $this->basepath->getBasePath() . '/' . $url, $media); + } } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |