compatibilité PHP7 (marsu15) et un peu de PSR

svn/root/tags/v1.2.1
erational@erational.org 6 years ago
parent 1112c6a2a9
commit 0c582c3c8d

@ -1,6 +1,8 @@
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Ajouter la table spip_articles_syndic
@ -52,4 +54,4 @@ function rssarticle_declarer_tables_principales($tables_principales){
}
?>

@ -7,7 +7,9 @@
*/
if (!defined("_ECRIRE_INC_VERSION")) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
include_spip("inc/presentation");
@ -44,4 +46,3 @@ function exec_rss_article_dist(){
echo fin_gauche() . fin_page();
}
?>

@ -1,6 +1,8 @@
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
include_spip('inc/autoriser');
@ -55,4 +57,3 @@ function formulaires_editer_rssarticle_traiter_dist($id_syndic='new', $retour=''
return $message;
}
?>

@ -5,6 +5,9 @@
*
*
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
// TODO
// - gerer les mots-clés hors enclosure ?
@ -255,8 +258,9 @@ function html2spip($lapage){
$lapage = str_replace("\r", "\n", $lapage);
// SUPPRIME LES TAGS
if (eregi("<title.*>(.*)</title>", $lapage, $regs))
$titre = textebrut($regs[1]);
if (preg_match("/<title.*>(.*)<\/title>/i", $lapage, $regs)) {
$titre = textebrut($regs[1]);
}
$lapage = textebrut($lapage);
// Suite tableaux
@ -275,4 +279,3 @@ function html2spip($lapage){
return $lapage;
}
?>

@ -1,11 +1,13 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined('_ECRIRE_INC_VERSION')) return;
$GLOBALS[$GLOBALS['idx_lang']] = array(
// R
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$GLOBALS[$GLOBALS['idx_lang']] = array(
// R
'rssarticle_description' => 'Ce plugin recopie les flux RSS (articles syndiqués) en articles
-* reprise du contenu du flux;
@ -13,9 +15,8 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
-* ajoute les documents distants présents dans le flux;
-* dans le champs URL de l\'article, on indique l\'adresse de l\'article d\'origine.
Pour éviter les doublons et les imports successifs, une fois l\'article créé, l\'article syndiqué est rejeté (ce qui permet de suivre où en sont les recopiés).',
'rssarticle_nom' => 'Flux RSS en articles',
'rssarticle_slogan' => 'Recopie les flux RSS en articles',
);
?>
Pour éviter les doublons et les imports successifs, une fois l\'article créé, l\'article syndiqué est rejeté (ce qui permet de suivre où en sont les recopiés).',
'rssarticle_nom' => 'Flux RSS en articles',
'rssarticle_slogan' => 'Recopie les flux RSS en articles',
);

@ -1,6 +1,8 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined("_ECRIRE_INC_VERSION")) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$GLOBALS[$GLOBALS['idx_lang']] = array(
@ -34,4 +36,4 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
);
?>

@ -1,6 +1,8 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined("_ECRIRE_INC_VERSION")) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$GLOBALS[$GLOBALS['idx_lang']] = array(
@ -45,4 +47,4 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
);
?>

@ -1,7 +1,7 @@
<paquet
prefix="rssarticle"
categorie="edition"
version="1.1.4"
version="1.1.5"
etat="stable"
compatibilite="[3.0.2;3.1.*]"
logo="prive/themes/spip/images/rssarticle-64.png"
@ -9,7 +9,7 @@
schema="1.0.0"
>
<nom>Flux RSS en articles</nom>
<auteur lien='http://www.erational.org'>erational</auteur>
<auteur lien='https://www.erational.org'>erational</auteur>
<auteur>LudoRA</auteur>
<licence>GNU/GPL v3</licence>
<pipeline nom="declarer_tables_principales" inclure="base/rssarticle.php"/>

@ -1,6 +1,8 @@
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$GLOBALS['rssarticle_base_version'] = 0.3;
@ -56,4 +58,4 @@ function rssarticle_vider_tables() {
effacer_meta('rssarticle_base_version');
ecrire_metas();
}
?>

@ -4,7 +4,9 @@
*
*/
if (!defined("_ECRIRE_INC_VERSION")) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
function rssarticle_taches_generales_cron($taches_generales){
// si cfg dispo, on charge les valeurs
@ -44,4 +46,3 @@ function rssarticle_affiche_milieu($flux) {
return $flux;
}
?>
Loading…
Cancel
Save