Changeset 87519 in spip-zone


Ignore:
Timestamp:
Feb 18, 2015, 11:33:12 AM (5 years ago)
Author:
teddy.spip@…
Message:

On rajoute un paramètre pour forcer la requête

Location:
_plugins_/rss_commits/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/rss_commits/trunk/paquet.xml

    r84760 r87519  
    22        prefix="rss_commits"
    33        categorie="divers"
    4         version="0.6.1"
     4        version="0.6.2"
    55        etat="dev"
    66        compatibilite="[3.0.8;3.0.*]"
  • _plugins_/rss_commits/trunk/rss_commits_fonctions.php

    r84743 r87519  
    1717include_spip('inc/filtres');
    1818
    19 function lister_rss_commits ($id_projet = null)
     19function lister_rss_commits($id_projet = null, $force = true)
    2020{
    2121    $rss_items = array();
     
    2424    if (!is_null($id_projet) and $id_projet = intval($id_projet)) {
    2525        $where = "versioning_rss !='' AND id_projet=$id_projet";
     26    }
     27    if ($force == true) {
     28        $where = "versioning_rss !=''";
    2629    }
    2730
Note: See TracChangeset for help on using the changeset viewer.