mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
Define ereg() if it does not exists
This commit is contained in:
parent
9d7250f240
commit
e26b7e5823
1 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if (!function_exists('ereg')) {
|
||||||
|
function ereg($pattern, $subject, &$matches = array())
|
||||||
|
{
|
||||||
|
return preg_match('/'.$pattern.'/', $subject, $matches);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function arguments($argv) {
|
function arguments($argv) {
|
||||||
$_ARG = array();
|
$_ARG = array();
|
||||||
foreach ($argv as $arg) {
|
foreach ($argv as $arg) {
|
||||||
|
|
Loading…
Reference in a new issue