CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#8256] no css loaded for default template in 1.11.1

avatar
Created By: Mizar (Mizar)
Date Submitted: Wed Aug 15 10:17:48 -0400 2012

Assigned To:
Version: 1.11.1
CMSMS Version: 1.11.1
Severity: None
Resolution: Fixed
State: Closed
Summary:
no css loaded for default template in 1.11.1
Detailed Description:
Hello,

Might be worth knowing that after a new blank install of 1.11.1 as it is shipped
when I click to show my site there is looks like unformatted text.

It shows though when adding $config['root_url'] = 'http://blablub'; to the
config file.

My suggestion: if this doesn't really work reliantly as it should... why not add
the path to the config file again by default as it used to be in earlier
versions?

Thanks for reading.


System Info:
Windows 7, php 5.4.4 (XAMPP 1.8.0)



History

Comments
avatar
Date: 2012-08-15 11:04
Posted By: Tapio Löytty (Stikki)

It works very well by default on most systems.

We develope on linux platforms but our test team mostly tests this on windows
machines, and yet we haven't had any problems.

Without knowledge of exact problem in your system, can't really help with this.

-Stikki-
      
avatar
Date: 2012-09-05 10:49
Posted By: Christopher Lorne (clorne)

Fault lies wth

lib/classes/class.cms_config.php

in

 case 'root_url'

$path = dirname($parts['path']);  returns" \ " for Windows OS

the line

while(endswith($path,'/')   does NOT get rid of  the Windows backslash

to correct problem suggest

while(endswith($path,'/') OR endswith($path,'\\')) 



      
avatar
Date: 2012-09-05 10:57
Posted By: Tapio Löytty (Stikki)

Hi clorne!

Could you test with line: while(endswith($path, DIRECTORY_SEPARATOR)) {

Should cover both systems, lemme know what happend.

-Stikki-
      
avatar
Date: 2012-09-05 13:28
Posted By: Christopher Lorne (clorne)

Hi Stikki

Works fine - well done!

Christopher
      
Updates

Updated: 2012-09-07 15:27
state: Open => Closed

Updated: 2012-09-05 13:33
resolution_id: 9 => 7

Updated: 2012-08-15 11:04
resolution_id: => 9