Changeset 341:796cb01c7120 for inc/public
- Timestamp:
- 06/07/11 07:29:49 (14 years ago)
- Branch:
- 2.3
- Children:
- 343:f9fcb964c910, 362:b070e9822ded
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r270 r341 563 563 } 564 564 565 if (empty($attr['no_context']) )565 if (empty($attr['no_context']) && !isset($attr['category'])) 566 566 { 567 567 $p .= … … 1324 1324 if (empty($attr['no_context'])) 1325 1325 { 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 } 1330 1333 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 } 1335 1341 1336 1342 $p .=
Note: See TracChangeset
for help on using the changeset viewer.