]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2726 applied zcho's patch to fix more errors from the "_" to "-" CSS conversion
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 9 Dec 2010 21:24:52 +0000 (21:24 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 9 Dec 2010 21:24:52 +0000 (21:24 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7586 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/input/userpicker.php

index 8f32aa4c57a8a7aea6d4994b7ba6f0f793028bee..85fbd70f127a480827f8ebdcaa6f1f1e2365a4ff 100644 (file)
@@ -18,9 +18,9 @@
  *
  */
 
-global $user-picker_js_sent;
+global $user_picker_js_sent;
 
-function user-picker_add-user($user_id) {
+function user_picker_add_user($user_id) {
        $user = get_entity($user_id);
        if (!$user || !($user instanceof ElggUser)) {
                return FALSE;
@@ -56,7 +56,7 @@ foreach ($vars['value'] as $value) {
 // convert the values to a json-encoded list
 $json_values = json_encode($values);
 
-if (!$user-picker_js_sent) {
+if (!$user_picker_js_sent) {
 ?>
 <!-- User picker JS -->
 <script language="javascript" type="text/javascript" src="<?php echo elgg_get_site_url(); ?>vendors/jquery/jquery.autocomplete.min.js"></script>
@@ -170,13 +170,13 @@ $(document).ready(function() {
 });
 </script>
 <?php
-       $user-picker_js_sent = true;
+       $user_picker_js_sent = true;
 }
 
 // create an HTML list of users
 $user_list = '';
 foreach ($vars['value'] as $user_id) {
-       $user_list .= user-picker_add-user($user_id);
+       $user_list .= user_picker_add_user($user_id);
 }
 
 ?>