Skip to content
This repository has been archived by the owner. It is now read-only.

UC People Bug Fixes #133

Merged
merged 1 commit into from Dec 11, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

UC People Bug Fixes

  • Loading branch information
jmr06005 committed Dec 11, 2015
commit bb0173455916ab266465a63aa06f8016bce60aae
@@ -61,10 +61,10 @@
};
if (in_array('file', $information_to_display)) {
$file = get_field('file');
$urlLength = strlen($file);
$urlLength = strlen($file['url']);
if ($urlLength > 0){
echo '<p class="person-file">';
echo '<a href="'.$file[url].'">'.$file[title].'</a>';
echo '<a href="'.$file['url'].'">'.$file['title'].'</a>';
echo '</p>';
}
};
@@ -135,7 +135,13 @@ function sort_group_by_order( $a, $b ){
}
};
}

if(!empty($specific_groups) && is_array($specific_groups)){
$groups_in_use = array();
foreach($specific_groups as $group){
$group = get_term_by('id', $group, 'group');
$groups_in_use[] = $group->slug;
}
}
// sort the groups in use alphabetically
//sort($groups_in_use);
usort($groups_in_use, 'sort_group_by_order' );
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.