diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-17 02:38:19 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-17 02:38:19 +0000 |
commit | c428d54dcc5524c641a45aa66e6a06a1df60e931 (patch) | |
tree | a21465deafce7ff302c524811bbde33096e39d76 /engine/lib/configuration.php | |
parent | cb3dbb5c961010ca32067f76fe666fe3162f42ce (diff) | |
download | elgg-c428d54dcc5524c641a45aa66e6a06a1df60e931.tar.gz elgg-c428d54dcc5524c641a45aa66e6a06a1df60e931.tar.bz2 |
Fixes #3123. Datalists and config names can now be up to 255 chars long. Debug mode is disabled when caching views to avoid saving bad stuff.
git-svn-id: http://code.elgg.org/elgg/trunk@8746 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/configuration.php')
-rw-r--r-- | engine/lib/configuration.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 7e660c34b..4679a70d8 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -143,8 +143,8 @@ function elgg_save_config($name, $value, $site_guid = 0) { $name = trim($name); - if (strlen($name) > 32) { - elgg_log("The name length for configuration variables cannot be greater than 32", "ERROR"); + if (strlen($name) > 255) { + elgg_log("The name length for configuration variables cannot be greater than 255", "ERROR"); return false; } @@ -277,8 +277,8 @@ function datalist_set($name, $value) { global $CONFIG, $DATALIST_CACHE; // cannot store anything longer than 32 characters in db, so catch before we set - if (elgg_strlen($name) > 32) { - elgg_log("The name length for configuration variables cannot be greater than 32", "ERROR"); + if (elgg_strlen($name) > 255) { + elgg_log("The name length for configuration variables cannot be greater than 255", "ERROR"); return false; } |