Add SHA1 to files

This commit is contained in:
Némunaire 2013-10-10 05:11:47 +02:00
parent fffb86e971
commit 33c70f850f
2 changed files with 3 additions and 1 deletions

View File

@ -18,3 +18,4 @@
<!ELEMENT file (#PCDATA)>
<!ATTLIST file path CDATA #REQUIRED>
<!ATTLIST file sha1 CDATA #REQUIRED>

View File

@ -62,7 +62,8 @@ if ($SESS->level > 1)
else if ($child->nodeName == "file")
$ex->add_file(
$child->getAttribute("path"),
$child->nodeValue);
$child->nodeValue,
$child->getAttribute("sha1"));
}
if (!$theme->add_exercice($ex))