Dotclear


Ignore:
Timestamp:
07/30/15 20:31:21 (10 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

dcTemplate::getSortByStr must allow new keys from foreign tables through templateCustomSortByAlias behavior.
Remove test for existing DC_RC_PATH constant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/class.dc.template.php

    r3063 r3064  
    44# This file is part of Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2015 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    1010# 
    1111# -- END LICENSE BLOCK ----------------------------------------- 
    12 if (!defined('DC_RC_PATH')) { return; } 
    1312 
    1413class dcTemplate extends template 
     
    345344                         $alias[$k] = array(); 
    346345                    } 
    347                     if (!is_array($v)) { 
     346                    if (!isset($default_alias[$k]) || !is_array($default_alias[$k])) { 
    348347                         $default_alias[$k] = array(); 
    349348                    } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map