Dotclear

Changeset 1270:2d6acb946596 for inc/core


Ignore:
Timestamp:
08/05/13 13:58:47 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.5
Message:

Harmonization of variable's name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.media.php

    r1268 r1270  
    497497     @param    post_id   <b>integer</b>      Post ID 
    498498     @param    media_id  <b>integer</b>      Optionnal media ID 
    499      @param    $returnRs <b>boolean</b>      Whether to return a resultset (true) or an array (false, default value). 
     499     @param    return_rs <b>boolean</b>      Whether to return a resultset (true) or an array (false, default value). 
    500500     @return   <b>array</b> Array or ResultSet of fileItems 
    501501     */ 
    502      public function getPostMedia($post_id,$media_id=null,$returnRs=false) 
     502     public function getPostMedia($post_id,$media_id=null,$return_rs=false) 
    503503     { 
    504504          $params = array( 
     
    516516               $f = $this->fileRecord($rs); 
    517517               if ($f !== null) { 
    518                     $res[] = $returnRs ? new ArrayObject($f) : $f; 
    519                } 
    520           } 
    521            
    522           return $returnRs ? staticRecord::newFromArray($res) : $res; 
     518                    $res[] = $return_rs ? new ArrayObject($f) : $f; 
     519               } 
     520          } 
     521           
     522          return $return_rs ? staticRecord::newFromArray($res) : $res; 
    523523     } 
    524524      
Note: See TracChangeset for help on using the changeset viewer.

Sites map