fix #312 subdef structure for a preview is duplicate

This commit is contained in:
Nicolas Le Goff
2012-02-03 15:32:52 +01:00
parent 50af32532e
commit 6a437a3831
3 changed files with 3 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ class databox_subdefsStructure implements IteratorAggregate
$subdef = $dom_struct->createElement('subdef');
$subdef->setAttribute('class', $class);
$subdef->setAttribute('name', $name);
$subdef->setAttribute('name', mb_strtolower($name));
$dom_xp = $this->databox->get_xpath_structure();
$query = '//record/subdefs/subdefgroup[@name="' . $groupname . '"]';

View File

@@ -47,7 +47,7 @@
<label lang="fr">Prévisualisation</label>
<label lang="en">Preview</label>
</subdef>
<subdef class="thumbnail" name="thumbnailGIF" downloadable="true">
<subdef class="thumbnail" name="thumbnailgif" downloadable="true">
<path>{{datapathweb}}{{basename}}/subdefs</path>
<size>200</size>
<mediatype>gif</mediatype>

View File

@@ -45,7 +45,7 @@
<label lang="fr">Prévisualisation</label>
<label lang="en">Preview</label>
</subdef>
<subdef class="thumbnail" name="thumbnailGIF" downloadable="true">
<subdef class="thumbnail" name="thumbnailgif" downloadable="true">
<path>{{datapathweb}}{{basename}}/subdefs</path>
<size>200</size>
<mediatype>gif</mediatype>