Skip to content

Commit

Permalink
MDL-15252 MDL-21375 Removing illegal stringid '*' and some whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Apr 27, 2010
1 parent 8e642e1 commit 4d74c87
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blocks/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function definition() {
$pagetypeoptions = array();
foreach ($pagetypelist as $pagetype) { // Find human-readable names for the pagetypes
$pagetypeoptions[$pagetype] = $pagetype;
$pagetypestringname = 'page-'.str_replace('*', 'x',$pagetype); // Better names MDL-21375
$pagetypestringname = 'page-'.str_replace('*', 'x',$pagetype); // Better names MDL-21375
$pagetypestring = get_string($pagetypestringname, 'pagetype');
if (substr($pagetypestring, 0, 1) != '[') {
$pagetypeoptions[$pagetype] .= ' ('.$pagetypestring.')';
Expand Down
1 change: 0 additions & 1 deletion lang/en/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['*'] = 'Any page';
$string['addtodock'] = 'Move this to the dock';
$string['anypagematchingtheabove'] = 'Any page matching the above';
$string['appearsinsubcontexts'] = 'Appears in sub-contexts';
Expand Down
2 changes: 1 addition & 1 deletion lib/blocklib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ function matching_page_type_patterns($pagetype) {
$patterns[] = implode('-', $bits) . '-*';
array_pop($bits);
}
$patterns[] = '*';
$patterns[] = '*';
return $patterns;
}

Expand Down

0 comments on commit 4d74c87

Please sign in to comment.