Commits

Shlomi Fish  committed bc9afbb

Got rid of calls to the deprecated ereg().

ereg() was deprecated in recent PHPs and gives an error with php-5.3 and
above.

  • Participants
  • Parent commits 561a0e3

Comments (0)

Files changed (2)

File site/inc/header.php

 }
 
 // Strip the extension
-if (ereg("^(.*)\..*$", $_SERVER["SCRIPT_FILENAME"], $matches))
+if (preg_match("/^(.*)\..*$/", $_SERVER["SCRIPT_FILENAME"], $matches))
 {
 	$noext = $matches[1];
 	$css_inline_filename = $noext . "_style.css";

File site/inc/mail.php

 
 function smtp_code($res)
 {
-	if (ereg("^([0-9]+) ", $res, $matches))
+	if (preg_match("/^([0-9]+) /", $res, $matches))
 		return $matches[1];
 }