Commit 3c839c77 authored by Son Nguyen's avatar Son Nguyen
Browse files

Missing text about how many pages can be displayed Bug#969794



+ Add text description: "Between 1 and 100" in configuration of
'watchlist', 'recent journal entries', and 'tagged journal entries'
+ Add rule for checking the number of items to be displayed min=1,
max=100

Change-Id: Ia1016bc1cd084c855b16b7264136e83bc7a6959f
Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
parent 6bb50530
......@@ -94,8 +94,10 @@ class PluginBlocktypeRecentposts extends PluginBlocktype {
'count' => array(
'type' => 'text',
'title' => get_string('itemstoshow', 'blocktype.blog/recentposts'),
'description' => get_string('betweenxandy', 'mahara', 1, 100),
'defaultvalue' => isset($configdata['count']) ? $configdata['count'] : 10,
'size' => 3,
'rules' => array('integer' => true, 'minvalue' => 1, 'maxvalue' => 100),
),
);
......
......@@ -139,9 +139,10 @@ class PluginBlocktypeTaggedposts extends SystemBlocktype {
'count' => array(
'type' => 'text',
'title' => get_string('itemstoshow', 'blocktype.blog/taggedposts'),
'description' => get_string('betweenxandy', 'mahara', 1, 100),
'defaultvalue' => isset($configdata['count']) ? $configdata['count'] : 10,
'size' => 3,
'rules' => array('integer' => true, 'minvalue' => 1, 'maxvalue' => 999),
'rules' => array('integer' => true, 'minvalue' => 1, 'maxvalue' => 100),
),
);
}
......
......@@ -90,9 +90,10 @@ class PluginBlocktypeWatchlist extends SystemBlocktype {
'count' => array(
'type' => 'text',
'title' => get_string('itemstoshow', 'blocktype.watchlist'),
'description' => get_string('betweenxandy', 'mahara', 1, 100),
'defaultvalue' => isset($configdata['count']) ? $configdata['count'] : 10,
'size' => 3,
'rules' => array('integer' => true, 'minvalue' => 1, 'maxvalue' => 999),
'rules' => array('integer' => true, 'minvalue' => 1, 'maxvalue' => 100),
),
);
}
......
......@@ -1017,3 +1017,5 @@ $string['setblocktitle'] = 'Set a block title';
// Download
$string['filenotfound'] = 'File not found';
$string['betweenxandy'] = 'Between %s and %s';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment