includes/clientside/static/functions.js
changeset 1252 e34c23a35dc9
parent 1227 bdac73ed481e
child 1272 05b7645f12e6
--- a/includes/clientside/static/functions.js	Sun May 16 21:35:43 2010 -0400
+++ b/includes/clientside/static/functions.js	Wed Jun 02 21:58:26 2010 -0400
@@ -40,9 +40,15 @@
 {
 	// Convert Special:UploadFile to ['UploadFile', 'Special'], but convert 'Image:Enano.png' to ['Enano.png', 'File']
 	for(var i in namespace_list)
+	{
 		if(namespace_list[i] != '')
+		{
 			if(namespace_list[i] == string.substr(0, namespace_list[i].length))
+			{
 				return [string.substr(namespace_list[i].length), i];
+			}
+		}
+	}
 	return [string, 'Article'];
 }