mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-14129, fix print_error() call, see tracker
This commit is contained in:
parent
e31a44ee20
commit
8b141784a8
3 changed files with 20 additions and 20 deletions
|
@ -15,7 +15,7 @@
|
|||
}
|
||||
|
||||
if (empty($CFG->bloglevel)) {
|
||||
print_error('Blogging is disabled!');
|
||||
print_error('blogdisable', 'blog');
|
||||
}
|
||||
|
||||
require_capability('moodle/blog:view', $context);
|
||||
|
@ -26,7 +26,7 @@
|
|||
$pagesize = required_param('pagesize', PARAM_INT);
|
||||
|
||||
if ($pagesize < 1) {
|
||||
print_error('invalid page size');
|
||||
print_error('invalidpagesize');
|
||||
}
|
||||
set_user_preference('blogpagesize', $pagesize);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue