From: <cl...@us...> - 2004-05-19 03:45:19
|
Update of /cvsroot/phpicalendar/phpicalendar/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22817/includes Modified Files: event.php Log Message: Code optimization: Specifically replace each language variable instead of looking for any. Index: event.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/includes/event.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** event.php 16 May 2004 06:44:04 -0000 1.27 --- event.php 19 May 2004 03:45:09 -0000 1.28 *************** *** 33,37 **** if ($description) $description = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$description); ! if ($organizer) { $i=0; $display .= $organizer_lang . ' - '; --- 33,37 ---- if ($description) $description = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$description); ! if (is_array($organizer)) { $i=0; $display .= $organizer_lang . ' - '; *************** *** 42,46 **** $organizer = substr($organizers,0,-2); } ! if ($attendee) { $i=0; $display .= $attendee_lang . ' - '; --- 42,46 ---- $organizer = substr($organizers,0,-2); } ! if (is_array($attendee)) { $i=0; $display .= $attendee_lang . ' - '; |