Revision: 1153
http://sourceforge.net/p/gemstracker/code/1153
Author: mennodekker
Date: 2013-02-22 14:37:27 +0000 (Fri, 22 Feb 2013)
Log Message:
-----------
Full paths for css/js added to a form
Modified Paths:
--------------
trunk/library/classes/Gems/Form/Decorator/Form.php
Modified: trunk/library/classes/Gems/Form/Decorator/Form.php
===================================================================
--- trunk/library/classes/Gems/Form/Decorator/Form.php 2013-02-21 16:56:30 UTC (rev 1152)
+++ trunk/library/classes/Gems/Form/Decorator/Form.php 2013-02-22 14:37:27 UTC (rev 1153)
@@ -76,14 +76,14 @@
$css = $form->getCss();
if (!is_null($scripts) && is_array($scripts)) {
- $baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
+ $baseUrl = $view->serverUrl() . GemsEscort::getInstance()->basepath->getBasePath();
$headscript = $view->headScript();
foreach ($scripts as $script) {
$headscript->appendFile($baseUrl . $script);
}
}
if (!is_null($css) && is_array($css)) {
- $baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
+ $baseUrl = $view->serverUrl() . GemsEscort::getInstance()->basepath->getBasePath();
$headLink = $view->headLink();
foreach($css as $cssFile => $media) {
$headLink->appendStylesheet($baseUrl . $cssFile, $media);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|