projects
/
mw_sourceml
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plusieurs auteurs pour les sources
[mw_sourceml]
/
app
/
data
/
modules
/
share
/
sml_data_sources_xml_format.php
diff --git
a/app/data/modules/share/sml_data_sources_xml_format.php
b/app/data/modules/share/sml_data_sources_xml_format.php
index
0847036
..
b087aae
100644
(file)
--- a/
app/data/modules/share/sml_data_sources_xml_format.php
+++ b/
app/data/modules/share/sml_data_sources_xml_format.php
@@
-3,7
+3,7
@@
class sml_data_sources_xml_format extends mw_data
{
class sml_data_sources_xml_format extends mw_data
{
- var $status;
+ var $status;
// classes de sources - table sml_classes
var $source;
var $groupes;
var $licence;
var $source;
var $groupes;
var $licence;
@@
-91,7
+91,7
@@
function empty_source($params = array())
{ $source = array
function empty_source($params = array())
{ $source = array
- ( "
auteur
s" => array(),
+ ( "
groupe
s" => array(),
"titre" => "",
"from" => "",
"licence" => array
"titre" => "",
"from" => "",
"licence" => array
@@
-124,7
+124,7
@@
{ $this->buffer = $this->sxml->data["source"][0];
foreach($this->buffer["subs"] as $key => $value)
{ if($key == "auteur")
{ $this->buffer = $this->sxml->data["source"][0];
foreach($this->buffer["subs"] as $key => $value)
{ if($key == "auteur")
- { $source["
auteur
s"][] = array
+ { $source["
groupe
s"][] = array
( "nom" => $value[0]["data"]
);
}
( "nom" => $value[0]["data"]
);
}
@@
-165,7
+165,7
@@
}
}
$source["auteur"] = "";
}
}
$source["auteur"] = "";
- foreach($source["
auteur
s"] as $auteur) $source["auteur"] .= ($source["auteur"] ? ", " : "").$auteur["nom"];
+ foreach($source["
groupe
s"] as $auteur) $source["auteur"] .= ($source["auteur"] ? ", " : "").$auteur["nom"];
}
else return false;
}
}
else return false;
}