root/trunk/Sillaj-widget/sillaj_widgetmod.patch
| Revision 48, 1.4 KB (checked in by johan, 3 years ago) |
|---|
-
getProject_xmlhttp.php
diff -uprN sillaj_0_2_12/getProject_xmlhttp.php sillaj/getProject_xmlhttp.php
old new 1 <?php 2 header('Content-Type: text/javascript; charset=iso-8859-1'); 3 require('./inc/config.php'); 4 $project = new Project; 5 $smarty->assign_by_ref('arrProject', $project->get()); 6 $smarty->display('frmEvent_projOption.tpl'); 7 ?> -
login_xmlhttp.php
diff -uprN sillaj_0_2_12/login_xmlhttp.php sillaj/login_xmlhttp.php
old new 1 <?php 2 header('Content-Type: text/javascript; charset=iso-8859-1'); 3 require('./inc/config.php'); 4 // Validate form 5 if (count($_POST) != 0) { 6 $user->execAuthent(false); 7 } 8 ?> 9 // require empty line here.. for some reason -
templates/default/frmEvent_projOption.tpl
diff -uprN sillaj_0_2_12/templates/default/frmEvent_projOption.tpl sillaj/templates/default/frmEvent_projOption.tpl
old new 1 {* called by getProject_xmlhttp.php *} 2 var arrXmlhttp = new Array( 3 {foreach key=intProjectId item=strProject name=i from=$arrProject} 4 Array({$intProjectId}, '{$strProject|addslashes}'){if ! $smarty.foreach.i.last},{/if} 5 {/foreach} 6 );
Note: See TracBrowser
for help on using the browser.
