From 5eedc1f7e74a500256342a7eebb987e23c1f7c55 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 23 Oct 2010 12:56:40 +0000 Subject: - Patch #937508 by amateescu: the documentation for arg() doesn't report what the function returns when it's called without arguments. --- includes/bootstrap.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 360564d84..6a9d3a071 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -2467,7 +2467,8 @@ function request_path() { * * @return * The component specified by $index, or NULL if the specified component was - * not found. + * not found. If called without arguments, it returns an array containing all + * the components of the current path. */ function arg($index = NULL, $path = NULL) { // Even though $arguments doesn't need to be resettable for any functional -- cgit v1.2.3