@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb011 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
addons
/
Commercial.pack
/
lib
/
CustomFields
/
App
/
Path :
Upload File :
New :
File
Dir
/homepage/v-mt/addons/Commercial.pack/lib/CustomFields/App/Search.pm
# Movable Type (r) (C) 2007 Six Apart, Ltd. All Rights Reserved. # This code cannot be redistributed without permission from www.sixapart.com. # For more information, consult your Movable Type license. # # $Id$ package CustomFields::App::Search; use strict; use CustomFields::Util qw( get_meta); sub _search_hit { my $plugin = shift; my ($app, $entry) = @_; my $search_hit_method = $plugin->{search_hit_method}; return 1 if &{$search_hit_method}($app, $entry); # If query matches non-CustomFields, why waste time? return 0 if $app->{searchparam}{SearchElement} ne 'entries'; # If it hasn't matched and isn't searching on entries, again why waste time? my @text_elements = ($entry->title, $entry->text, $entry->text_more, $entry->keywords); my $meta = get_meta($entry); foreach my $field (keys %$meta) { push @text_elements, $meta->{$field}; } return 1 if $app->is_a_match(join("\n", map $_ || '', @text_elements)); } 1;