summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-01 18:26:44 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-01 18:26:44 +0000
commitb29009179a2fc662b2cbf6df00106acd88df2d05 (patch)
treebb8051f8117ce0620a2e0d649e5754bc48f51f4b
parente3065ec62c5c0148e9c1e107be872327f8395868 (diff)
downloadbrdo-b29009179a2fc662b2cbf6df00106acd88df2d05.tar.gz
brdo-b29009179a2fc662b2cbf6df00106acd88df2d05.tar.bz2
- Patch #276876 by mr.baileys: remove case sensitivity from variable names (get/set/del) through extra documentation.
-rw-r--r--includes/bootstrap.inc18
1 files changed, 15 insertions, 3 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 209a6abe8..45835e830 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -760,7 +760,11 @@ function variable_initialize($conf = array()) {
}
/**
- * Return a persistent variable.
+ * Returns a persistent variable.
+ *
+ * Case-sensitivity of the variable_* functions depends on the database
+ * collation used. To avoid problems, always use lower case for persistent
+ * variable names.
*
* @param $name
* The name of the variable to return.
@@ -780,7 +784,11 @@ function variable_get($name, $default = NULL) {
}
/**
- * Set a persistent variable.
+ * Sets a persistent variable.
+ *
+ * Case-sensitivity of the variable_* functions depends on the database
+ * collation used. To avoid problems, always use lower case for persistent
+ * variable names.
*
* @param $name
* The name of the variable to set.
@@ -802,7 +810,11 @@ function variable_set($name, $value) {
}
/**
- * Unset a persistent variable.
+ * Unsets a persistent variable.
+ *
+ * Case-sensitivity of the variable_* functions depends on the database
+ * collation used. To avoid problems, always use lower case for persistent
+ * variable names.
*
* @param $name
* The name of the variable to undefine.