summaryrefslogtreecommitdiff
path: root/lib/plugins/usermanager/_test/mocks.class.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-12-01 16:23:02 +0000
committerChristopher Smith <chris@jalakai.co.uk>2013-12-01 16:23:02 +0000
commitc9454ee3a82b29418a7ee59f0bb35006ea6a7fb1 (patch)
tree03f8e39f6c30d3f19a4203e51f18efe6fae19a8b /lib/plugins/usermanager/_test/mocks.class.php
parent211955bef84071b025e83bdeeefe496a5002fdd8 (diff)
downloadrpg-c9454ee3a82b29418a7ee59f0bb35006ea6a7fb1.tar.gz
rpg-c9454ee3a82b29418a7ee59f0bb35006ea6a7fb1.tar.bz2
Per FS#2884, implement a local version of str_getcsv() to maintain
compatibility with php 5.2.x (str_getcsv() is only available in php 5.3+ and is used by user manager import feature.
Diffstat (limited to 'lib/plugins/usermanager/_test/mocks.class.php')
-rw-r--r--lib/plugins/usermanager/_test/mocks.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/plugins/usermanager/_test/mocks.class.php b/lib/plugins/usermanager/_test/mocks.class.php
index f3cc72c27..91c74768c 100644
--- a/lib/plugins/usermanager/_test/mocks.class.php
+++ b/lib/plugins/usermanager/_test/mocks.class.php
@@ -26,6 +26,14 @@ class admin_mock_usermanager extends admin_plugin_usermanager {
return $this->_import();
}
+ /**
+ * @deprecated remove when dokuwiki requires php 5.3+
+ * also associated unit test & usermanager methods
+ */
+ public function access_str_getcsv($line){
+ return $this->str_getcsv($line);
+ }
+
// no need to send email notifications (mostly)
protected function _notifyUser($user, $password, $status_alert=true) {
if ($this->mock_email_notifications) {