From: <nuc...@us...> - 2008-01-28 02:09:08
|
Revision: 4929 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=4929&view=rev Author: nuclear_eclipse Date: 2008-01-27 18:09:01 -0800 (Sun, 27 Jan 2008) Log Message: ----------- Fixed CSS link not being based on Mantis' relative path. Modified Paths: -------------- trunk/mantisbt/config_defaults_inc.php trunk/mantisbt/core/html_api.php Modified: trunk/mantisbt/config_defaults_inc.php =================================================================== --- trunk/mantisbt/config_defaults_inc.php 2008-01-27 13:58:21 UTC (rev 4928) +++ trunk/mantisbt/config_defaults_inc.php 2008-01-28 02:09:01 UTC (rev 4929) @@ -1455,7 +1455,7 @@ $g_bottom_include_page = '%absolute_path%'; $g_top_include_page = '%absolute_path%'; # CSS file - $g_css_include_file = '%path%css/default.css'; + $g_css_include_file = 'css/default.css'; # meta tags $g_meta_include_file = '%absolute_path%meta_inc.php'; Modified: trunk/mantisbt/core/html_api.php =================================================================== --- trunk/mantisbt/core/html_api.php 2008-01-27 13:58:21 UTC (rev 4928) +++ trunk/mantisbt/core/html_api.php 2008-01-28 02:09:01 UTC (rev 4929) @@ -232,7 +232,7 @@ # (5) Print the link to include the css file function html_css() { $t_css_url = config_get( 'css_include_file' ); - echo "\t", '<link rel="stylesheet" type="text/css" href="', $t_css_url, '" />', "\n"; + echo "\t", '<link rel="stylesheet" type="text/css" href="', helper_mantis_url( $t_css_url ), '" />', "\n"; # fix for NS 4.x css echo "\t", '<script type="text/javascript" language="JavaScript"><!--', "\n"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |