summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-23 12:56:40 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-23 12:56:40 +0000
commit5eedc1f7e74a500256342a7eebb987e23c1f7c55 (patch)
tree496ae1a0f93c239a5fd920b11bf42fb2bb9c21c7
parent95601106b286ecf9c900b6bca8ab08a8622b63b6 (diff)
downloadbrdo-5eedc1f7e74a500256342a7eebb987e23c1f7c55.tar.gz
brdo-5eedc1f7e74a500256342a7eebb987e23c1f7c55.tar.bz2
- Patch #937508 by amateescu: the documentation for arg() doesn't report what the function returns when it's called without arguments.
-rw-r--r--includes/bootstrap.inc3
1 files changed, 2 insertions, 1 deletions
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