Dotclear

Changeset 3064:a484a50c8c14


Ignore:
Timestamp:
07/30/15 20:31:21 (9 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.

Files:
1 added
3 edited

Legend:

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

    r3036 r3064  
    44# This file is part of Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2014 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 
    1413/** 
  • 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                    } 
  • tests/unit/bootstrap.php

    r2999 r3064  
    2323$__autoload['pgsqlConnection'] = CLEARBRICKS_PATH.'/dblayer/class.pgsql.php'; 
    2424$__autoload['record'] = CLEARBRICKS_PATH.'/dblayer/dblayer.php'; 
     25$__autoload['template'] = CLEARBRICKS_PATH.'/template/class.template.php'; 
     26$__autoload['path'] = CLEARBRICKS_PATH.'/common/lib.files.php'; 
    2527 
    2628$__autoload['dcCore'] = __DIR__.'/../../inc/core/class.dc.core.php'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map