Permalink
Browse files

fix(views): input/userpicker API more BC with 1.8 plugins

Fixes #6079
  • Loading branch information...
mrclay committed Oct 4, 2015
1 parent 5676ff2 commit 0651a5fdc075bde1f09f6ee27252a7ba471216f1
Showing with 7 additions and 0 deletions.
  1. +7 −0 views/default/input/userpicker.php
@@ -24,6 +24,13 @@
$name = htmlspecialchars($name, ENT_QUOTES, 'UTF-8');
$guids = (array)elgg_extract('values', $vars, array());
+if (!$guids) {
+ // BC with earlier 1.x
+ if (!empty($vars['value'])) {
+ elgg_deprecated_notice("The input/userpicker view option 'value' is deprecated. Use 'values'.", "1.12");
+ $guids = (array)elgg_extract('value', $vars, array());
+ }
+}
$handler = elgg_extract('handler', $vars, 'livesearch');
$handler = htmlspecialchars($handler, ENT_QUOTES, 'UTF-8');

0 comments on commit 0651a5f

Please sign in to comment.