Browse Source

Decomplicate the messages->format method.

Taylor Otwell 13 years ago
parent
commit
be3266d255
1 changed files with 4 additions and 1 deletions
  1. 4 1
      system/messages.php

+ 4 - 1
system/messages.php

@@ -105,7 +105,10 @@ class Messages {
 	 */
 	private function format($messages, $format)
 	{
-		array_walk($messages, function(&$message, $key) use ($format) { $message = str_replace(':message', $message, $format); });
+		foreach ($messages as $key => &$message)
+		{
+			$message = str_replace(':message', $message, $format);
+		}
 
 		return $messages;
 	}