Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  proposed patch to phpMyEdit-mce-cal

phpMyEdit General     proposed patch to phpMyEdit-mce-cal
Post new topic   Reply to topic    
 
mabi     Joined: 18 May 2009   Posts: 1  
Post Posted: 2009-05-18 12:40
Back to top  Reply with quote     

hello,
I tried subitting a bug report, but I am getting a php error.

The problem is that the phpMyEdit-mce-cal extension generates HTML code to setup the jscalendar using double quotes for integer values (eg. firstDay) confusing jsCal(at least on my setup). There is also a missing space between id and name attributes in HTML.
I propose the enclosed patch
Thanks for this useful project
Regards
Marco


patch against phpMyEdit-mce-cal.class.php v 1.6 2006-09-16 18:43:47 nepto:
Code:
469c469
<          echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';
---
>          echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';
494c494,500
<                      echo "\t",str_pad($ck1, 15),' : "',$cv1,'",',"\n";
---
>                      if(is_int($cv1)){
>                         echo "\t",str_pad($ck1, 15),' : ',$cv1,',',"\n";
>                      }else if(is_bool($cv1)){
>                         echo "\t",str_pad($ck1, 15),' : ',$cv1?'true':'false',',',"\n";
>                      }else{
>                         echo "\t",str_pad($ck1, 15),' : "',$cv1,'",',"\n";
>                      }


 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy