Permalink
Browse files

MDL-42533 conditionlib: Add clarifying comments

  • Loading branch information...
danpoltawski committed Nov 4, 2013
1 parent 8a7078b commit c512b7cc65cb63aa7466c3f765333a4c2131d295
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/conditionlib.php
View
@@ -825,6 +825,7 @@ public function get_full_information($modinfo=null) {
$a = new stdclass;
// Display the fieldname into current lang.
if (is_numeric($field)) {
// Is a custom profile field (will use multilang).
$translatedfieldname = $details->fieldname;
} else {
$translatedfieldname = get_user_field_name($details->fieldname);
@@ -1037,6 +1038,7 @@ public function is_available(&$information, $grabthelot=false, $userid=0, $modin
$available = false;
// Display the fieldname into current lang.
if (is_numeric($field)) {
// Is a custom profile field (will use multilang).
$translatedfieldname = $details->fieldname;
} else {
$translatedfieldname = get_user_field_name($details->fieldname);

0 comments on commit c512b7c

Please sign in to comment.