Explorar o código

Parameter order has been changed

bel %!s(int64=9) %!d(string=hai) anos
pai
achega
63602c5ac6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;