Changeset 2563
- Timestamp:
- 06/13/08 01:01:43 (17 months ago)
- Location:
- branches/release-40
- Files:
-
- 3 modified
-
lib/MT/Template/ContextHandlers.pm (modified) (1 diff)
-
t/35-tags.dat (modified) (1 diff)
-
t/lib/MT/Test.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-40/lib/MT/Template/ContextHandlers.pm
r2557 r2563 14043 14043 14044 14044 require MT::ObjectAsset; 14045 my @assets = MT::Asset->load( undef, { join => MT::ObjectAsset->join_on(undef, {14045 my @assets = MT::Asset->load({ class => '*' }, { join => MT::ObjectAsset->join_on(undef, { 14046 14046 asset_id => \'= asset_id', object_ds => 'entry', object_id => $e->id })}); 14047 14047 return '' unless @assets; -
branches/release-40/t/35-tags.dat
r2530 r2563 406 406 { "r" : "1", "t" : "<MTAuthors sort_by='display_name' sort_order='descend'><MTAuthorID>;</MTAuthors>", "e" : "3;2;"}, #354 407 407 { "r" : "1", "t" : "<MTArchives><MTArchiveLabel></MTArchives>", "e" : "EntryMonthlyWeeklyDailyCategoryPage"}, #355 408 { "r" : "1", "t" : "<MTEntries><$MTEntryID$>:<MTComments><MTIfCommenterIsAuthor><MTIfCommenterIsEntryAuthor>2<MTElse>1</MTIfCommenterIsEntryAuthor><MTElse>0</MTIfCommenterIsAuthor>;</MTComments></MTEntries>", "e" : "1:0;0;0;8:0;7:6: 1;2;0;5:0;4:"}, #356408 { "r" : "1", "t" : "<MTEntries><$MTEntryID$>:<MTComments><MTIfCommenterIsAuthor><MTIfCommenterIsEntryAuthor>2<MTElse>1</MTIfCommenterIsEntryAuthor><MTElse>0</MTIfCommenterIsAuthor>;</MTComments></MTEntries>", "e" : "1:0;0;0;8:0;7:6:2;1;0;5:0;4:"}, #356 409 409 { "r" : "1", "t" : "<MTPages id='20'><$MTPageMore$></MTPages>", "e" : "<p>I don't have much to say,</p>"}, #357 410 410 { "r" : "1", "t" : "<MTAssets lastn='1'><$MTAssetlabel$></MTAssets>", "e" : "Image photo"}, #358 -
branches/release-40/t/lib/MT/Test.pm
r2530 r2563 37 37 our $CORE_TIME; 38 38 BEGIN { 39 *CORE::GLOBAL::time = sub { CORE::time };39 *CORE::GLOBAL::time = sub { my ($a) = @_; $a ? CORE::time + $_[0] : CORE::time }; 40 40 *CORE::GLOBAL::sleep = sub { CORE::sleep }; 41 41 } … … 595 595 $cmt->commenter_id($chuckd->id); 596 596 $cmt->visible(1); 597 $cmt->created_on('20040910183000'); 597 598 $cmt->id(14); 598 599 $cmt->save or die "Couldn't save comment record 1: ".$cmt->errstr; … … 601 602 $cmt->commenter_id($bobd->id); 602 603 $cmt->visible(1); 604 $cmt->created_on('20040910182800'); 603 605 $cmt->id(15); 604 606 $cmt->save or die "Couldn't save comment record 1: ".$cmt->errstr;
