The problem lies at line 50 in themecontrol.php:

$file =
str_replace('{prepath}','http://'.$_SERVER['SERVER_NAME'].$uri,$file);

In our case we are only using https.  Therefore, every tag in the
default theme that may use {prepath} for the url is incorrect.  Right
now it appears that the only tag using this is the link tag so the
stylesheet is not loading.

A simple fix would be to check whether the server is using SSL or not:

$file = str_replace('{prepath}','http'.($_SERVER['HTTPS'] == "on" ?
's':'').'://'.$_SERVER['SERVER_NAME'].$uri,$file);

-- 
themecontrol.php replacing {prepath} incorrectly
https://bugs.launchpad.net/bugs/309365
You received this bug notification because you are a member of Phpns-
team, which is subscribed to phpns.

_______________________________________________
Mailing list: https://launchpad.net/~phpns-team
Post to     : phpns-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~phpns-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to