From: root Date: Sat, 26 Oct 2013 15:42:41 +0000 (+0200) Subject: attribut src au lieu de href pour les sources X-Git-Tag: sourceml.1.0.1 X-Git-Url: http://git.dj3c1t.com/?p=mw_sourceml;a=commitdiff_plain;h=dfb63819f6edd72089b4d3a4c8cce3d7cba7c015 attribut src au lieu de href pour les sources --- 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 320ecee..ae67cab 100644 --- a/app/data/modules/share/sml_data_sources_xml_format.php +++ b/app/data/modules/share/sml_data_sources_xml_format.php @@ -30,10 +30,10 @@ $content = "\n"; if($this->source["derivations"]){ foreach($this->source["derivations"] as $id_derivation => $derivation){ - $content .= " \n"; + $content .= " \n"; } } - if($this->source["reference"]) $content .= " source["reference"]["xml"]["url"]."\" />\n"; + if($this->source["reference"]) $content .= " source["reference"]["xml"]["url"]."\" />\n"; else{ $content .= " <![CDATA[".$this->source["titre"]."]]>\n" @@ -201,7 +201,7 @@ elseif($key == "derivated_from"){ $source["derivations"][] = array( "xml" => array( - "url" => $value[0]["attrs"]["href"], + "url" => $value[0]["attrs"]["src"], "content" => "", "use_edit_content" => false ) @@ -210,7 +210,7 @@ elseif($key == "reference"){ $source["reference"] = array( "xml" => array( - "url" => $value[0]["attrs"]["href"], + "url" => $value[0]["attrs"]["src"], "content" => "", "use_edit_content" => false ) diff --git a/app/out/default/views/content/sources/xml_form.php b/app/out/default/views/content/sources/xml_form.php index faa21c2..48cab50 100644 --- a/app/out/default/views/content/sources/xml_form.php +++ b/app/out/default/views/content/sources/xml_form.php @@ -90,7 +90,7 @@ Editer le contenu du fichier XML /> > - +