Browse Source

Ensure querystring arguments override all other configuration values - useful when setting the path as a querystring arg instead of in the normal path variable

Jose Diaz-Gonzalez 11 years ago
parent
commit
ba8fa2dd83
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Core/StaticConfigTrait.php

+ 1 - 1
src/Core/StaticConfigTrait.php

@@ -215,7 +215,7 @@ trait StaticConfigTrait {
 			$parsed['password'] = $parsed['pass'];
 		}
 
-		$config = array_merge($queryArgs, $config, $parsed);
+		$config = array_merge($config, $parsed, $queryArgs);
 		unset($config['user'], $config['pass'], $config['scheme']);
 
 		if ($driver !== null) {