Dotclear

Changeset 2567:6c11245cbf04 for inc/core


Ignore:
Timestamp:
11/17/13 20:30:21 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Parents:
2564:c8bf313d697e (diff), 2566:9bf417837888 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from 2.6

Location:
inc/core
Files:
5 edited

Legend:

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

    r2521 r2567  
    23852385     //@} 
    23862386} 
    2387 ?> 
  • inc/core/class.dc.blog.php

    r2566 r2567  
    18941894     - post_id: (integer) Get comments belonging to given post_id 
    18951895     - cat_id: (integer or array) Get comments belonging to entries of given category ID 
    1896      - comment_id: (integer) Get comment with given ID 
     1896     - comment_id: (integer or array) Get comment with given ID (or IDs) 
    18971897     - comment_site: (string) Get comments with given comment_site 
    18981898     - comment_status: (integer) Get comments with given comment_status 
     
    19841984 
    19851985          if (isset($params['comment_id']) && $params['comment_id'] !== '') { 
    1986                $strReq .= 'AND comment_id = '.(integer) $params['comment_id'].' '; 
     1986               if (is_array($params['comment_id'])) { 
     1987                    array_walk($params['comment_id'],create_function('&$v,$k','if($v!==null){$v=(integer)$v;}')); 
     1988               } else { 
     1989                    $params['comment_id'] = array((integer) $params['comment_id']); 
     1990               } 
     1991               $strReq .= 'AND comment_id '.$this->con->in($params['comment_id']); 
    19871992          } 
    19881993 
  • inc/core/class.dc.namespace.php

    r2505 r2567  
    399399 
    400400} 
    401 ?> 
  • inc/core/class.dc.namespace.php

    r2566 r2567  
    125125 
    126126     /** 
     127     Returns global setting value if exists. 
     128 
     129     @param    n         <b>string</b>       setting name 
     130     @return   <b>mixed</b> 
     131     */ 
     132     public function getGlobal($n) 
     133     { 
     134          if (isset($this->global_settings[$n]['value'])) { 
     135               return $this->global_settings[$n]['value']; 
     136          } 
     137 
     138          return null; 
     139     } 
     140 
     141     /** 
     142     Returns local setting value if exists. 
     143 
     144     @param    n         <b>string</b>       setting name 
     145     @return   <b>mixed</b> 
     146     */ 
     147     public function getLocal($n) 
     148     { 
     149          if (isset($this->local_settings[$n]['value'])) { 
     150               return $this->local_settings[$n]['value']; 
     151          } 
     152 
     153          return null; 
     154     } 
     155 
     156     /** 
    127157     Magic __get method. 
    128158     @copydoc ::get 
  • inc/core/class.dc.themes.php

    r2566 r2567  
    5959          # Themes specifics properties 
    6060          $properties = array_merge( 
    61                array('parent' => null), 
     61               array('parent' => null, 'tplset' => 'legacy'), 
    6262               $properties, 
    6363               array('permissions' => 'admin') // force themes perms 
Note: See TracChangeset for help on using the changeset viewer.

Sites map