summaryrefslogtreecommitdiff
path: root/BigLine.php
diff options
context:
space:
mode:
Diffstat (limited to 'BigLine.php')
-rw-r--r--BigLine.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/BigLine.php b/BigLine.php
index b61a429..6502ad9 100644
--- a/BigLine.php
+++ b/BigLine.php
@@ -123,7 +123,7 @@ else
case "TracksPerWeek":
case "TracksPerMonth":
$format="DEFAULT";
- ereg("^(Album|Track)sPer(Day|Week|Month)$",$type,$match);
+ preg_match("/^(Album|Track)sPer(Day|Week|Month)$/",$type,$match);
$albumtrack=$match[1];
$dayweekmonth=$match[2];
eval("\$number=\$".$albumtrack."sPer".$dayweekmonth.";");
@@ -140,7 +140,7 @@ else
case "TotalTracks":
case "TotalAlbums":
$format="Total";
- ereg("^Total(Track|Album)s$",$type,$match);
+ preg_match("/^Total(Track|Album)s$/",$type,$match);
$albumtrack=$match[1];
switch ($albumtrack.'s')
{
@@ -166,7 +166,7 @@ else
foreach ($Lines as $Line)
{
eval("\$Line->value=\"$formats[$format]\";");
- $Line->font = "import/" . $Styles[$style];
+ $Line->font = "import/" . $Styles[$style];
$Line->angle=ANGLE;
$size=imageftbbox($Line->size, $Line->angle, $Line->font, $Line->value);