Ver código fonte

Parameter order has been changed

bel 9 anos atrás
pai
commit
63602c5ac6
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/mod_lua.inl

+ 1 - 1
src/mod_lua.inl

@@ -833,7 +833,7 @@ lsp_get_response_code_text(lua_State *L)
 			/* If the first argument is a number,
 			   convert it to the corresponding text. */
 			code = lua_tonumber(L, 1);
-			text = mg_get_response_code_text((int)code, NULL);
+			text = mg_get_response_code_text(NULL, (int)code);
 			if (text)
 				lua_pushstring(L, text);
 			return text ? 1 : 0;