Permalink
Browse files

MDL-28121, fixed deprecated split() function

  • Loading branch information...
1 parent ff555b5 commit f12c714e6fdfce14b9e60957004917b25d28a688 @dcai dcai committed Jun 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 webservice/lib.php
View
@@ -315,7 +315,7 @@ public function get_service_required_capabilities($serviceid) {
$functions = $this->get_external_functions(array($serviceid));
$requiredusercaps = array();
foreach ($functions as $function) {
- $functioncaps = split(',', $function->capabilities);
+ $functioncaps = explode(',', $function->capabilities);
if (!empty($functioncaps) and !empty($functioncaps[0])) {
foreach ($functioncaps as $functioncap) {
$requiredusercaps[$function->name][] = trim($functioncap);

0 comments on commit f12c714

Please sign in to comment.