Explorar el Código

System update (developers cut)

markseu hace 9 años
padre
commit
2b8adbaab8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      system/plugins/core.php

+ 2 - 1
system/plugins/core.php

@@ -2400,8 +2400,9 @@ class YellowToolbox
 	}
 	
 	// Check if location contains location arguments
-	function isLocationArgs($location)
+	function isLocationArgs($location = "")
 	{
+		$location = empty($location) ? $_SERVER["LOCATION"].$_SERVER["LOCATION_ARGS"] : $location;
 		$separator = $this->getLocationArgsSeparator();
 		return preg_match("/[^\/]+$separator.*$/", $location);
 	}