Commit 7fe321fe authored by Nigel McNie's avatar Nigel McNie
Browse files

Some minor comment shifting.

parent f6c7a337
......@@ -57,10 +57,10 @@ class LeapImportResume extends LeapImportArtefactPlugin {
$correctplugintype = count($entry->xpath('mahara:artefactplugin[@mahara:plugin="resume"]')) == 1;
// Goals, cover letter & interests
$correctrdftype = count($entry->xpath('rdf:type['
. $importer->curie_xpath('@rdf:resource', PluginImportLeap::NS_LEAPTYPE, 'entry') . ']')) == 1;
if ($correctrdftype && $correctplugintype) {
// Goals, cover letter, interests match here
$strategies[] = array(
'strategy' => self::STRATEGY_IMPORT_AS_ENTRY,
'score' => 100,
......@@ -68,10 +68,10 @@ class LeapImportResume extends LeapImportArtefactPlugin {
);
}
// Skills
$correctrdftype = count($entry->xpath('rdf:type['
. $importer->curie_xpath('@rdf:resource', PluginImportLeap::NS_LEAPTYPE, 'ability') . ']')) == 1;
if ($correctrdftype && $correctplugintype) {
// Skills match here
$strategies[] = array(
'strategy' => self::STRATEGY_IMPORT_AS_ABILITY,
'score' => 100,
......
Markdown is supported
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