Code not valid

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Grover

Code not valid

Post by Grover »

Hi,

I am to stupit to get a valid code. I chek HTML code of cms.eids.de and can not solve it.
Maybe someone can have a look?

Edit: if I remove {stylesheet} out of the template the code is valid.

Thanks

Grover
Last edited by Grover on Fri Oct 14, 2005 8:03 am, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Code not valid

Post by Ted »

The stylesheet tag that's created has the /> at the end of it.  I guess this isn't valid for html 4.01, though I've never heard anyone complain about that before.
BlueTag

Re: Code not valid

Post by BlueTag »

Does anyone know how to remove the "/"? Thanks
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Code not valid

Post by Ted »

If this is 0.10.3, go to line 129 of lib/content.functions.php.

Find

Code: Select all

$stylesheet = '<link rel="stylesheet" type="text/css" href="'.$config['root_url'].'/stylesheet.php?templateid='.$template_id.'" />';
and replace with

Code: Select all

$stylesheet = '<link rel="stylesheet" type="text/css" href="'.$config['root_url'].'/stylesheet.php?templateid='.$template_id.'">';
Locked

Return to “CMSMS Core”