mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
Merge pull request #41 from alexAubin/patch-1
Stretch compatibility : create ereg() if it does not exists
This commit is contained in:
commit
6f996f7d1d
1 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,12 @@
|
|||
<?php
|
||||
|
||||
if (!function_exists('ereg')) {
|
||||
function ereg($pattern, $subject, &$matches = array())
|
||||
{
|
||||
return preg_match('/'.$pattern.'/', $subject, $matches);
|
||||
}
|
||||
}
|
||||
|
||||
function arguments($argv) {
|
||||
$_ARG = array();
|
||||
foreach ($argv as $arg) {
|
||||
|
@ -24,4 +31,4 @@ $oConfig = \RainLoop\Api::Config();
|
|||
$oConfig->SetPassword($args['password']);
|
||||
echo $oConfig->Save() ? 'Admin password updated' : 'Admin password not updated';
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue