Changeset 6037 for trunk/calendar
- Timestamp:
- 04/26/12 11:43:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.boicalendar.inc.php
r5921 r6037 2383 2383 // if(preg_match('/D/', $_f_['day_raw'])) 2384 2384 if (strstr($_f_['day_raw'], 'D')) { 2385 $dur['days'] = eregi_replace("([0-9]+)D(.*)", "\\1", $_f_['day_raw']);2385 $dur['days'] = preg_replace('/([0-9]+)D(.*)/i', '\\1', $_f_['day_raw']); 2386 2386 } 2387 2387 … … 2389 2389 // if(preg_match('/W/', $_f_["day_raw"])) 2390 2390 if (strstr($_f_['day_raw'], 'W')) { 2391 $dur['weeks'] = eregi_replace("([^|.*]+D)?([0-9]+)W", "\\2", $_f_['day_raw']);2391 $dur['weeks'] = preg_replace('/([^|.*]+D)?([0-9]+)W/i', '\\2', $_f_['day_raw']); 2392 2392 } 2393 2393 } … … 2398 2398 // if(preg_match('/H/', $_f_["time_raw"])) 2399 2399 if (strstr($_f_['time_raw'], 'H')) { 2400 $dur['hours'] = eregi_replace("([0-9]+)H(.*)", "\\1", $_f_['time_raw']);2400 $dur['hours'] = preg_replace('/([0-9]+)H(.*)/i', '\\1', $_f_['time_raw']); 2401 2401 } 2402 2402 … … 2405 2405 // if(preg_match('/M/', $_f_["time_raw"])) 2406 2406 if (strstr($_f_['time_raw'], 'M')) { 2407 $dur['minutes'] = eregi_replace("([^|.*]+H)?([0-9]+)M(.*)", "\\2", $_f_['time_raw']);2407 $dur['minutes'] = preg_replace('/([^|.*]+H)?([0-9]+)M(.*)/i', '\\2', $_f_['time_raw']); 2408 2408 } 2409 2409 … … 2412 2412 // if(preg_match('/S/', $_f_["time_raw"]) ) 2413 2413 if (strstr($_f_['time_raw'], 'S')) { 2414 $dur['seconds'] = eregi_replace("([^|.*]+M)?([0-9]+)S(.*)", "\\2", $_f_['time_raw']);2414 $dur['seconds'] = preg_replace('/([^|.*]+M)?([0-9]+)S(.*)/i', '\\2', $_f_['time_raw']); 2415 2415 } 2416 2416 }
Note: See TracChangeset
for help on using the changeset viewer.