Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-32941 change category name limit from 30 to 255

  • Loading branch information...
commit d7238d0839b61f1f416ff8ad11f4e239773882e9 1 parent f2229c6
@mouneyrac mouneyrac authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/externallib.php
View
4 course/externallib.php
@@ -782,7 +782,7 @@ public static function create_categories($categories) {
}
}
// Check name.
- if (textlib::strlen($category['name'])>30) {
+ if (textlib::strlen($category['name'])>255) {
throw new moodle_exception('categorytoolong');
}
@@ -1191,7 +1191,7 @@ public static function update_categories($categories) {
require_capability('moodle/category:manage', $categorycontext);
if (!empty($cat['name'])) {
- if (textlib::strlen($cat['name'])>30) {
+ if (textlib::strlen($cat['name'])>255) {
throw new moodle_exception('categorytoolong');
}
$category->name = $cat['name'];
Please sign in to comment.
Something went wrong with that request. Please try again.