Dotclear


Ignore:
Timestamp:
06/07/11 07:29:49 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
2.3
Children:
343:f9fcb964c910, 362:b070e9822ded
Message:

Context no more overrides tag attributes. Closes #1110

File:
1 edited

Legend:

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

    r270 r341  
    563563          } 
    564564           
    565           if (empty($attr['no_context'])) 
     565          if (empty($attr['no_context']) && !isset($attr['category'])) 
    566566          { 
    567567               $p .= 
     
    13241324          if (empty($attr['no_context'])) 
    13251325          { 
    1326                $p .= 
    1327                'if ($_ctx->exists("users")) { '. 
    1328                     "\$params['user_id'] = \$_ctx->users->user_id; ". 
    1329                "}\n"; 
     1326               if (!isset($attr['author'])) 
     1327               { 
     1328                    $p .= 
     1329                    'if ($_ctx->exists("users")) { '. 
     1330                         "\$params['user_id'] = \$_ctx->users->user_id; ". 
     1331                    "}\n"; 
     1332               } 
    13301333                
    1331                $p .= 
    1332                'if ($_ctx->exists("categories")) { '. 
    1333                     "\$params['cat_id'] = \$_ctx->categories->cat_id; ". 
    1334                "}\n"; 
     1334               if (!isset($attr['category']) && (!isset($attr['no_category']) || !$attr['no_category'])) 
     1335               { 
     1336                    $p .= 
     1337                    'if ($_ctx->exists("categories")) { '. 
     1338                         "\$params['cat_id'] = \$_ctx->categories->cat_id; ". 
     1339                    "}\n"; 
     1340               } 
    13351341                
    13361342               $p .= 
Note: See TracChangeset for help on using the changeset viewer.

Sites map