Project

General

Profile

« Previous | Next » 

Revision 1451

Added by Dietmar about 13 years ago

replace eregi with pregmatch in search_modext (Tks to Thorn)

View differences:

search_modext.php
362 362
		return $files;
363 363
	foreach($files as $file) {
364 364
		if($keep) {
365
			if(eregi($str, $file)) {
365
			if(preg_match("~$str~i", $file)) {
366 366
				$c_filelist[] = $file;
367 367
			}
368 368
		} else {
369
			if(!eregi($str, $file)) {
369
			if(!preg_match("~$str~i", $file)) {
370 370
				$c_filelist[] = $file;
371 371
			}
372 372
		}

Also available in: Unified diff