Commit 41231156 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

More readable 'do nothing' function

parent 4039f4c4
...@@ -159,7 +159,8 @@ function get_raw_string($identifier, $section='mahara') { ...@@ -159,7 +159,8 @@ function get_raw_string($identifier, $section='mahara') {
// For a raw string we don't want to format any arguments using // For a raw string we don't want to format any arguments using
// sprintf, so the replace function passed to get_string_location // sprintf, so the replace function passed to get_string_location
// should just return the first argument and ignore the second. // should just return the first argument and ignore the second.
return get_string_location($identifier, $section, array(), create_function('$a,$b','return $a;')); return get_string_location($identifier, $section, array(),
create_function('$string, $args','return $string;'));
} }
......
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