Changeset 243 for EntryCategoryEntries
- Timestamp:
- 09/16/06 12:44:59 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
EntryCategoryEntries/trunk/EntryCategoryEntries.pl
r154 r243 13 13 use base 'MT::Plugin'; 14 14 use vars qw($VERSION); 15 $VERSION = '0.0 1';15 $VERSION = '0.02'; 16 16 17 17 use MT; … … 22 22 name => 'Entry Category Entries', 23 23 description => "A plugin for listing entries included in the primary category of the current entry", 24 doc_link => 'http:// as-is.net/hacks/2005/10/entry_category_entries_plugin.html',24 doc_link => 'http://code.as-is.net/wiki/EntryCategoryEntries_Plugin', 25 25 author_name => 'Hirotaka Ogawa', 26 26 author_link => 'http://profile.typekey.com/ogawa/', … … 35 35 or return $ctx->_no_entry_error('MT' . $ctx->stash('tag')); 36 36 my $cat = $entry->category or return ''; 37 $args->{category} = ['OR',$cat];37 $args->{category} = MT->version_number > 3.2 ? ['OR',[$cat]] : ['OR',$cat]; 38 38 MT::Template::Context::_hdlr_entries(@_); 39 39 }
