Index: trunk/extensions/wikihiero/wh_main.php |
— | — | @@ -810,7 +810,7 @@ |
811 | 811 | $block[$block_id][$item_id] = $hiero[$char]; |
812 | 812 | $type = WH_TYPE_END; |
813 | 813 | |
814 | | - } elseif(ereg("[*:()]", $hiero[$char])) { |
| 814 | + } elseif(preg_match("/[*:()]/", $hiero[$char])) { |
815 | 815 | |
816 | 816 | if($type == WH_TYPE_GLYPH || $type == WH_TYPE_CODE) { |
817 | 817 | $item_id++; |
— | — | @@ -884,7 +884,7 @@ |
885 | 885 | // convert all code into '&' to test prefabs glyph |
886 | 886 | $temp = ""; |
887 | 887 | foreach($code as $t) { |
888 | | - if(ereg("[*:!()]", $t[0])) { |
| 888 | + if(preg_match("/[*:!()]/", $t[0])) { |
889 | 889 | $temp .= "&"; |
890 | 890 | } else { |
891 | 891 | $temp .= $t; |