Commit 93786ea3 authored by Richard Mansfield's avatar Richard Mansfield Committed by Gerrit Code Review
Browse files

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

parents ea8f3036 3c839c77
......@@ -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),
),
);
}
......
......@@ -1020,3 +1020,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