Changed ACL file write process for DW function

Replaced file_put_contents with io_saveFile
This commit is contained in:
Simon DELAGE 2015-01-20 00:56:39 +01:00
parent 6bec5cbf2e
commit 7fb70b83e2
2 changed files with 3 additions and 2 deletions

View file

@ -194,7 +194,8 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
// And only keep unique lines (OK, we loose an empty comment line...)
$lines = array_unique($lines);
// Write things back to conf/acl.auth.php
file_put_contents(DOKU_CONF.'acl.auth.php', implode($lines));
// file_put_contents(DOKU_CONF.'acl.auth.php', implode($lines));
io_saveFile(DOKU_CONF.'acl.auth.php', join('',$lines));
}
}

View file

@ -1,7 +1,7 @@
base userhomepage
author Simon Delage
email simon.geekitude@gmail.com
date 2015-01-11
date 2015-01-20
name User Homepage
desc Automatically create user's private namespace and/or public page and redirects users to private namespace on login.
url https://www.dokuwiki.org/plugin:userhomepage