Changeset 79134 in spip-zone
- Timestamp:
- Dec 4, 2013, 10:27:24 AM (7 years ago)
- Location:
- _plugins_/oembed
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/oembed/oembed_pipelines.php
r72312 r79134 181 181 */ 182 182 function oembed_pre_propre($texte) { 183 static $base = null; 183 184 include_spip('inc/config'); 184 185 if (lire_config('oembed/embed_auto','oui')!='non') { … … 189 190 AND preg_match(',\bauto\b,', extraire_attribut($lien, 'class')) 190 191 AND (oembed_verifier_provider($url) OR (lire_config('oembed/detecter_lien','non')=='oui'))) { 191 $fond = recuperer_fond('modeles/oembed',array('url'=>$url,'lien'=>$lien)); 192 if ($fond = trim($fond)) 193 $texte = str_replace($lien, echappe_html("<html>$fond</html>"), $texte); 192 if (is_null($base)) 193 $base = url_de_base(); 194 if (strncmp($url,$base,strlen($base))!=0){ 195 $fond = recuperer_fond('modeles/oembed',array('url'=>$url,'lien'=>$lien)); 196 if ($fond = trim($fond)) 197 $texte = str_replace($lien, echappe_html("<html>$fond</html>"), $texte); 198 } 194 199 } 195 200 } -
_plugins_/oembed/paquet.xml
r77960 r79134 2 2 prefix="oembed" 3 3 categorie="multimedia" 4 version="0.9.1 3"4 version="0.9.14" 5 5 etat="test" 6 6 compatibilite="[2.1.0;3.0.*]" -
_plugins_/oembed/plugin.xml
r77960 r79134 8 8 </auteur> 9 9 <version> 10 0.9.1 310 0.9.14 11 11 </version> 12 12 <etat>
Note: See TracChangeset
for help on using the changeset viewer.