Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
pollen8 committed Oct 23, 2013
1 parent 2be721f commit bd34575
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
9 changes: 3 additions & 6 deletions components/com_fabrik/models/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -4315,10 +4315,6 @@ public function getRelatedTables()
{
if (is_object($element))
{
// $$$rob moved these two lines here as there were giving warnings since Hugh commented out the if ($element != '') {
// $$$ hugh - what? Eh? WhaddidIdo? Anyway, we use $linkKey up ^^ there somewhere, so we need to define it earlier!
// Jaanus: now the linkkey is correctly generated

$linkKeyData = $referringTable->getRecordCounts($element, $pks);
$linkKey = $linkKeyData['linkKey'];
$val = $input->get($linkKey, '', 'string');
Expand All @@ -4329,10 +4325,11 @@ public function getRelatedTables()
}

// Jaanus: when no link to list and no formheaders then people still know where they add data
$label = $factedLinks->linkedformheader->$key != '' ? ': ' . $factedLinks->linkedformheader->$key : (isset($linkedLists->$key) && $linkedLists->$key != 0 ? '' : ': ' . $element->listlabel);
$fkey = $factedLinks->linkedformheader->$key;
$label = $fkey != '' ? ': ' . $fkey : (isset($linkedLists->$key) && $linkedLists->$key != 0 ? '' : ': ' . $element->listlabel);

// Jaanus: label after add link if no list link helps to make difference between data view links and only add links.
$links[$element->list_id][] = $referringTable->viewFormLink($popUpLink, $element, null, $linkKey, $val, false, $f) . $label;
$links[$element->list_id][] = $referringTable->viewFormLink($popUpLink, $element, null, $linkKey, $val, false, $f) . $label;
}
}

Expand Down
1 change: 1 addition & 0 deletions components/com_fabrik/views/emailform/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function sendMail($email)

// Mail function
$mail = JFactory::getMailer();

return $mail->sendMail($youremail, $yourname, $email, $subject, $msg);
}
}
2 changes: 1 addition & 1 deletion plugins/fabrik_element/fileupload/fileupload.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function elementJavascript($repeatCounter)
$oFiles = new stdClass;
$iCounter = 0;

//Failed validation for ajax upload elements
// Failed validation for ajax upload elements
if (array_key_exists('id', $value))
{
$imgParams = array_values($value['crop']);
Expand Down

0 comments on commit bd34575

Please sign in to comment.