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 { ...@@ -94,8 +94,10 @@ class PluginBlocktypeRecentposts extends PluginBlocktype {
'count' => array( 'count' => array(
'type' => 'text', 'type' => 'text',
'title' => get_string('itemstoshow', 'blocktype.blog/recentposts'), 'title' => get_string('itemstoshow', 'blocktype.blog/recentposts'),
'description' => get_string('betweenxandy', 'mahara', 1, 100),
'defaultvalue' => isset($configdata['count']) ? $configdata['count'] : 10, 'defaultvalue' => isset($configdata['count']) ? $configdata['count'] : 10,
'size' => 3, 'size' => 3,
'rules' => array('integer' => true, 'minvalue' => 1, 'maxvalue' => 100),
), ),
); );
......
...@@ -139,9 +139,10 @@ class PluginBlocktypeTaggedposts extends SystemBlocktype { ...@@ -139,9 +139,10 @@ class PluginBlocktypeTaggedposts extends SystemBlocktype {
'count' => array( 'count' => array(
'type' => 'text', 'type' => 'text',
'title' => get_string('itemstoshow', 'blocktype.blog/taggedposts'), 'title' => get_string('itemstoshow', 'blocktype.blog/taggedposts'),
'description' => get_string('betweenxandy', 'mahara', 1, 100),
'defaultvalue' => isset($configdata['count']) ? $configdata['count'] : 10, 'defaultvalue' => isset($configdata['count']) ? $configdata['count'] : 10,
'size' => 3, '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 { ...@@ -90,9 +90,10 @@ class PluginBlocktypeWatchlist extends SystemBlocktype {
'count' => array( 'count' => array(
'type' => 'text', 'type' => 'text',
'title' => get_string('itemstoshow', 'blocktype.watchlist'), 'title' => get_string('itemstoshow', 'blocktype.watchlist'),
'description' => get_string('betweenxandy', 'mahara', 1, 100),
'defaultvalue' => isset($configdata['count']) ? $configdata['count'] : 10, 'defaultvalue' => isset($configdata['count']) ? $configdata['count'] : 10,
'size' => 3, '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'; ...@@ -1020,3 +1020,5 @@ $string['setblocktitle'] = 'Set a block title';
// Download // Download
$string['filenotfound'] = 'File not found'; $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