Commit 84aa0d693b71fb77090a637fa36555f01ee82eb5

Kano 2012-03-13T23:36:02

miner.php: ereg_replace is DEPRECATED so use preg_replace instead

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/miner.php b/miner.php
index 8f37dfc..945f3ae 100644
--- a/miner.php
+++ b/miner.php
@@ -267,7 +267,7 @@ function details($cmd, $list)
 	if ($item == 'STATUS')
 		continue;
 
-	$sectionname = ereg_replace('[0-9]', '', $item);
+	$sectionname = preg_replace('/\d/', '', $item);
 
 	if ($sectionname != $section)
 	{