[Fusionforge-commits] FusionForge branch Branch_5_3 updated. dae149647fb65b01d7e0eae10187cdc6f73c584b

Franck VILLAUME nerville at fusionforge.org
Thu Feb 27 23:09:09 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_3 has been updated
       via  dae149647fb65b01d7e0eae10187cdc6f73c584b (commit)
      from  b2829bb7bb379aa9ce87ea436a7c6d2ec590c52b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dae149647fb65b01d7e0eae10187cdc6f73c584b
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Thu Feb 27 23:08:18 2014 +0100

    fix wrong approach about url_prefix dealing, use util_make_uri correctly

diff --git a/src/www/include/Layout.class.php b/src/www/include/Layout.class.php
index acb87d3..ba17932 100644
--- a/src/www/include/Layout.class.php
+++ b/src/www/include/Layout.class.php
@@ -182,9 +182,6 @@ class Layout extends Error {
 					$js .= '?'.date ("U", filemtime($filename));
 				}
 			}
-			if (forge_get_config('url_prefix')){
-				$js = forge_get_config('url_prefix').$js;
-			}
 			$this->javascripts[] = $js;
 		}
 	}
@@ -204,9 +201,6 @@ class Layout extends Error {
 					$css .= '?'.date ("U", filemtime($filename));
 				}
 			}
-			if (forge_get_config('url_prefix')){
-				$css = forge_get_config('url_prefix').$css;
-			}
 			$this->stylesheets[] = array('css' => $css, 'media' => $media);
 		}
 	}
@@ -218,7 +212,7 @@ class Layout extends Error {
 		$code = '';
 		foreach ($this->javascripts as $js) {
 			$code .= "\t\t\t";
-			$code .= '<script type="text/javascript" src="'.$js.'"></script>'."\n";
+			$code .= '<script type="text/javascript" src="'.util_make_uri($js).'"></script>'."\n";
 		}
 		$this->javascripts = array();
 		return $code;
@@ -232,9 +226,9 @@ class Layout extends Error {
 		foreach ($this->stylesheets as $c) {
 			$code .= "\t\t\t";
 			if ($c['media']) {
-				$code .= '<link rel="stylesheet" type="text/css" href="'.$c['css'].'" media="'.$c['media'].'" />'."\n";
+				$code .= '<link rel="stylesheet" type="text/css" href="'.util_make_uri($c['css']).'" media="'.$c['media'].'" />'."\n";
 			} else {
-				$code .= '<link rel="stylesheet" type="text/css" href="'.$c['css'].'"/>'."\n";
+				$code .= '<link rel="stylesheet" type="text/css" href="'.util_make_uri($c['css']).'"/>'."\n";
 			}
 		}
 		$this->stylesheets = array();

-----------------------------------------------------------------------

Summary of changes:
 src/www/include/Layout.class.php |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list