Commit d02ddb3c authored by Nigel McNie's avatar Nigel McNie
Browse files

Correct link type: 'relation' -> 'related'.

This might have misled Penny:
http://wiki.cetis.ac.uk/2009-03/LEAP2A_relationships#relation



I have e-mailed the list asking whether it should be renamed to
'related'.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 24e0d6fc
......@@ -464,7 +464,7 @@ class LeapExportElement {
* @param keyed array $extras any extra bits to go in (eg display_order => 1)
*/
public function add_generic_link($id, $rel, $extras=null) {
if ($rel != 'relation') {
if (!in_array($rel, array('related', 'alternate'))) {
$rel = 'leap:' . $rel;
}
$link = array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment