Dotclear

Changeset 1490:60501ef579eb for inc/core


Ignore:
Timestamp:
08/19/13 08:04:33 (12 years ago)
Author:
Dsls
Branch:
twig
Parents:
1489:f2398e7f3395 (diff), 1466:e67efe636ce1 (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:

Fusion avec default

File:
1 edited

Legend:

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

    r1353 r1490  
    44# This file is part of Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    8181               $this->desc = $b->blog_desc; 
    8282               $this->url = $b->blog_url; 
    83                $this->host = http::getHostFromURL($this->url); 
     83               $this->host = preg_replace('|^([a-z]{3,}://)(.*?)/.*$|','$1$2',$this->url); 
    8484               $this->creadt = strtotime($b->blog_creadt); 
    8585               $this->upddt = strtotime($b->blog_upddt); 
     
    9191               $this->public_path = path::fullFromRoot($this->settings->system->public_path,DC_ROOT); 
    9292                
    93                $this->post_status['-2'] = __('Pending'); 
    94                $this->post_status['-1'] = __('Scheduled'); 
    95                $this->post_status['0'] = __('Unpublished'); 
    96                $this->post_status['1'] = __('Published'); 
    97                 
    98                $this->comment_status['-2'] = __('Junk'); 
    99                $this->comment_status['-1'] = __('Pending'); 
    100                $this->comment_status['0'] = __('Unpublished'); 
    101                $this->comment_status['1'] = __('Published'); 
     93               $this->post_status['-2'] = __('pending'); 
     94               $this->post_status['-1'] = __('scheduled'); 
     95               $this->post_status['0'] = __('unpublished'); 
     96               $this->post_status['1'] = __('published'); 
     97                
     98               $this->comment_status['-2'] = __('junk'); 
     99               $this->comment_status['-1'] = __('pending'); 
     100               $this->comment_status['0'] = __('unpublished'); 
     101               $this->comment_status['1'] = __('published'); 
    102102                
    103103               # --BEHAVIOR-- coreBlogConstruct 
     
    805805           
    806806          if (!empty($params['user_id'])) { 
    807                $strReq .= "AND U.user_id = '".$this->con->escape($params['user_id'])."' "; 
     807               $strReq .= "AND U.user_id ".$this->con->in($params['user_id'])." "; 
    808808          } 
    809809           
     
    889889                    $strReq .= 'ORDER BY post_dt DESC '; 
    890890               } 
    891           } 
    892            
    893           if (!$count_only && !empty($params['limit'])) { 
    894                $strReq .= $this->con->limit($params['limit']); 
     891               if (!empty($params['limit'])) { 
     892                    $strReq .= $this->con->limit($params['limit']); 
     893               } 
    895894          } 
    896895           
Note: See TracChangeset for help on using the changeset viewer.

Sites map