Skip to content

Commit

Permalink
MDL-32941 change category name limit from 30 to 255
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed May 17, 2012
1 parent f2229c6 commit d7238d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down Expand Up @@ -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'];
Expand Down

0 comments on commit d7238d0

Please sign in to comment.