Browse Source

Fixed php.Boot._hx_string_call error.

- Fixed passing arguments in wrong order calling _hx_last_index_of
  in php.Boot._hx_string_call.
Valentín Barros 11 years ago
parent
commit
3034b57238
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/php/Boot.hx

+ 1 - 1
std/php/Boot.hx

@@ -565,7 +565,7 @@ function _hx_string_call($s, $method, $params) {
 		case 'charAt'     : return substr($s, $params[0], 1);
 		case 'charCodeAt' : return _hx_char_code_at($s, $params[0]);
 		case 'indexOf'    : return _hx_index_of($s, $params[0], (count($params) > 1 ? $params[1] : null));
-		case 'lastIndexOf': return _hx_last_index_of($s, (count($params) > 1 ? $params[1] : null), null);
+		case 'lastIndexOf': return _hx_last_index_of($s, $params[0], (count($params) > 1 ? $params[1] : null));
 		case 'split'      : return _hx_explode($params[0], $s);
 		case 'substr'     : return _hx_substr($s, $params[0], (count($params) > 1 ? $params[1] : null));
 		case 'toString'   : return $s;