CodeIgniter Forums
Wrong array index in doctypes array? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Wrong array index in doctypes array? (/showthread.php?tid=20022)



Wrong array index in doctypes array? - El Forum - 06-25-2009

[eluser]Kamape[/eluser]
Hi!

Is it just me or is the corresponding doctype array in doctypes.php not matching the default index choice in the html_helper doctype() function?

The actual declaration is:
Code:
function doctype($type = 'xhtml-strict')

But should be (according to the array)
Code:
function doctype($type = 'xhtml1-strict')

Is it just me who's having this "misspelling" ?

Or maybe I'm not the first noticing this?


Wrong array index in doctypes array? - El Forum - 07-21-2009

[eluser]John_Betong[/eluser]
 
Solution: http://ellislab.com/forums/viewthread/119029/

 
 
 


Wrong array index in doctypes array? - El Forum - 07-21-2009

[eluser]Kamape[/eluser]
[quote author="John_Betong" date="1248255723"] 
Solution: http://ellislab.com/forums/viewthread/119029/

 
 
 [/quote]

I don't quite understand? This is still a core bug and I don't need a solution to the problem that's only letting me change the default associated index. This thread is only a temporary solution.


Wrong array index in doctypes array? - El Forum - 07-21-2009

[eluser]John_Betong[/eluser]
[quote author="Kamape" date="1248257052"][quote author="John_Betong" date="1248255723"] 
Solution: http://ellislab.com/forums/viewthread/119029/

 
 
 [/quote]

I don't quite understand? This is still a core bug and I don't need a solution to the problem that's only letting me change the default associated index. This thread is only a temporary solution.[/quote]
 
Please ignore my post.
 
The reason is that I searched for "doctype()", found a few posts and re-posted my solution in the wrong forum.
 
Maybe I should edit my post and call it a kludge?
 
 


Wrong array index in doctypes array? - El Forum - 07-21-2009

[eluser]Kamape[/eluser]
[quote author="John_Betong" date="1248259858"][quote author="Kamape" date="1248257052"][quote author="John_Betong" date="1248255723"] 
Solution: http://ellislab.com/forums/viewthread/119029/

 
 
 [/quote]

I don't quite understand? This is still a core bug and I don't need a solution to the problem that's only letting me change the default associated index. This thread is only a temporary solution.[/quote]
 
Please ignore my post.
 
The reason is that I searched for "doctype()", found a few posts and re-posted my solution in the wrong forum.
 
Maybe I should edit my post and call it a kludge?
 
 [/quote]

NP. Hope that the bug change is made to the Core though. It's always frustrating whenever you need to search for error-pron syntax bugs.


Wrong array index in doctypes array? - El Forum - 07-25-2009

[eluser]Derek Allard[/eluser]
Sorry you got bit by this. I fixed up the error in April (in the SVN) but it hasn't made its way into the general release yet.


Wrong array index in doctypes array? - El Forum - 07-26-2009

[eluser]Kamape[/eluser]
Great! Just wondered :-)