- Timestamp:
- 08/29/09 00:42:22 (3 months ago)
- Location:
- trunk
- Files:
-
- 30 modified
-
lib/MT/App/Search.pm (modified) (3 diffs)
-
lib/MT/Asset.pm (modified) (2 diffs)
-
lib/MT/Asset/Image.pm (modified) (1 diff)
-
lib/MT/Blog.pm (modified) (1 diff)
-
lib/MT/CMS/Asset.pm (modified) (2 diffs)
-
lib/MT/CMS/Comment.pm (modified) (1 diff)
-
lib/MT/CMS/Entry.pm (modified) (3 diffs)
-
lib/MT/CMS/Tools.pm (modified) (2 diffs)
-
lib/MT/Core.pm (modified) (2 diffs)
-
lib/MT/Image.pm (modified) (2 diffs)
-
lib/MT/L10N/de.pm (modified) (2 diffs)
-
lib/MT/L10N/es.pm (modified) (1 diff)
-
lib/MT/L10N/fr.pm (modified) (3 diffs)
-
lib/MT/L10N/ja.pm (modified) (8 diffs)
-
lib/MT/L10N/nl.pm (modified) (1 diff)
-
lib/MT/Meta.pm (modified) (1 diff, 1 prop)
-
lib/MT/Meta/Proxy.pm (modified) (1 diff, 1 prop)
-
lib/MT/ObjectDriverFactory.pm (modified) (2 diffs)
-
lib/MT/Serialize.pm (modified) (1 diff)
-
lib/MT/Summary.pm (modified) (1 diff, 1 prop)
-
lib/MT/Summary/Author.pm (modified) (1 diff, 1 prop)
-
lib/MT/Summary/Entry.pm (modified) (1 diff, 1 prop)
-
lib/MT/Summary/Proxy.pm (modified) (1 diff, 1 prop)
-
lib/MT/Summary/Triggers.pm (modified) (1 diff, 1 prop)
-
lib/MT/Template/ContextHandlers.pm (modified) (1 diff)
-
lib/MT/Worker/Summarize.pm (modified) (1 diff, 1 prop)
-
lib/MT/Worker/SummaryWatcher.pm (modified) (3 diffs, 1 prop)
-
php/lib/block.mtifarchivetypeenabled.php (modified) (1 diff)
-
tmpl/cms/dialog/asset_insert.tmpl (modified) (4 diffs)
-
tmpl/cms/edit_entry.tmpl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/MT/App/Search.pm
r4155 r4156 66 66 }, 67 67 'sort' => 'authored_on', 68 terms => { status => 2, class => '*' }, #MT::Entry::RELEASE() 68 terms => { 69 status => 2, #MT::Entry::RELEASE() 70 class => $app->param('archive_type') ? 'entry' : '*', 71 }, 69 72 filter_types => { 70 73 author => \&_join_author, … … 722 725 } 723 726 else { 724 725 727 my $tmpl_id = $q->param ('template_id'); 726 728 if ($tmpl_id && $tmpl_id =~ /^\d+$/) { 727 729 $tmpl = $app->model('template')->lookup ($tmpl_id); 730 return $app->errtrans( 'No such template' ) 731 unless ($tmpl); 732 return $app->errtrans( 'template_id cannot be a global template' ) 733 if ($tmpl->blog_id == 0); 734 return $app->errtrans( 'Output file cannot be asp or php' ) 735 if ($tmpl->outfile && !$app->config->SearchAlwaysAllowTemplateID 736 && ($tmpl->outfile =~ /\.asp/i || $tmpl->outfile =~ /\.php/i)); 737 738 if ($q->param('archive_type')) { 739 my $at = $q->param('archive_type'); 740 my $archiver = MT->publisher->archiver($at); 741 return return $app->errtrans( 'You must pass a valid archive_type with the template_id' ) 742 unless ($archiver || $at eq 'Index'); 743 744 if ($at ne 'Index') { 745 return $app->errtrans( 'Template must have identifier entry_listing for non-Index archive types' ) 746 unless ($app->config->SearchAlwaysAllowTemplateID || $tmpl->identifier eq 'entry_listing'); 747 my $blog = $app->model('blog')->load($tmpl->blog_id); 748 return $app->errtrans( 'Blog file extension cannot be asp or php for these archives' ) 749 if (!$app->config->SearchAlwaysAllowTemplateID 750 && ($blog->file_extension =~ /^php$/i || $blog->file_extension =~ /^asp$/i)); 751 } else { 752 return $app->errtrans( 'Template must have identifier main_index for Index archive type' ) 753 unless ($app->config->SearchAlwaysAllowTemplateID || $tmpl->identifier eq 'main_index'); 754 } 755 } 756 else { 757 return $app->errtrans( 'You must pass a valid archive_type with the template_id' ); 758 } 728 759 } 729 760 … … 732 763 elsif ( my $blog_id = $ctx->stash('blog_id') ) { 733 764 my $tmpl_class = $app->model('template'); 734 if ($tmpl_id) { 735 $tmpl = $tmpl_class->load({ blog_id => $blog_id, id => $tmpl_id }); 736 } else { 737 $tmpl = $tmpl_class->load({ blog_id => $blog_id, type => 'search_results' }); 738 } 765 $tmpl = $tmpl_class->load({ blog_id => $blog_id, type => 'search_results' }); 739 766 } 740 767 unless ($tmpl) { 741 742 768 # load template from search_template path 743 769 # template_paths method does the magic -
trunk/lib/MT/Asset.pm
r4155 r4156 349 349 MT::Util::encode_html($asset->url), 350 350 MT::Util::encode_html($fname); 351 return $asset->enclose($text); 351 my $app = MT->instance; 352 return $app->param('edit_field') =~ /^customfield/ ? $asset->enclose($text) : $text; 352 353 } 353 354 … … 357 358 my $id = $asset->id; 358 359 my $type = $asset->class; 359 return $html;360 return qq{<form mt:asset-id="$id" class="mt-enclosure mt-enclosure-$type" style="display: inline;">$html</form>}; 360 361 } 361 362 -
trunk/lib/MT/Asset/Image.pm
r4155 r4156 261 261 my $text = ''; 262 262 263 my $app = MT->instance; 264 $param->{enclose} = 0 unless ($app->param('edit_field') =~ /^customfield/); 263 265 $param->{enclose} = 1 unless exists $param->{enclose}; 264 266 -
trunk/lib/MT/Blog.pm
r4155 r4156 501 501 my ($type) = @_; 502 502 my %at = map { lc $_ => 1 } split(/,/, $blog->archive_type); 503 return exists $at{lc $type} ? 1 : 0; 503 return 0 unless exists $at{lc $type}; 504 505 my $result = 0; 506 require MT::TemplateMap; 507 my @maps = MT::TemplateMap->load({blog_id => $blog->id, 508 archive_type => $type}); 509 return 0 unless @maps; 510 require MT::PublishOption; 511 foreach my $map (@maps) { 512 $result++ if $map->build_type != MT::PublishOption::DISABLED(); 513 } 514 return $result; 504 515 } 505 516 -
trunk/lib/MT/CMS/Asset.pm
r4155 r4156 1035 1035 $target_file =~ s/$ext_old/$ext_temp/; 1036 1036 $relative_path =~ s/$ext_old/$ext_temp/; 1037 $relative_url =~ s/$ext_old/$ext_temp/; 1037 1038 $asset_file =~ s/$ext_old/$ext_temp/; 1038 1039 $basename =~ s/$ext_old/$ext_temp/; … … 1272 1273 $asset->file_ext($ext); 1273 1274 $asset->blog_id($blog_id); 1275 $asset->label($local_basename); 1274 1276 $asset->created_by( $app->user->id ); 1275 1277 } -
trunk/lib/MT/CMS/Comment.pm
r4155 r4156 316 316 317 317 my %terms; 318 319 if ( !$app->param('blog_id') && !$app->user->is_superuser ) { 320 require MT::Permission; 321 $terms{blog_id} = [ 322 map { $_->blog_id } 323 grep { $_->can_view_feedback } 324 MT::Permission->load( { author_id => $app->user->id } ) 325 ]; 326 } 327 318 328 my $filter_col = $app->param('filter'); 319 329 if ( $filter_col && ( my $val = $app->param('filter_val') ) ) { -
trunk/lib/MT/CMS/Entry.pm
r4155 r4156 181 181 require MT::ObjectAsset; 182 182 my $assets =(); 183 if ($q->param('asset_id') && !$id) { 183 if ($q->param('reedit') && $q->param('include_asset_ids')) { 184 my $include_asset_ids = $app->param('include_asset_ids'); 185 my @asset_ids = split(',', $include_asset_ids); 186 foreach my $asset_id (@asset_ids) { 187 my $asset = MT::Asset->load($asset_id); 188 if ($asset) { 189 my $asset_1; 190 if ($asset->class eq 'image') { 191 $asset_1 = {asset_id => $asset->id, asset_name => $asset->file_name, asset_thumb => $asset->thumbnail_url(Width=>100)}; 192 } else { 193 $asset_1 = {asset_id => $asset->id, asset_name => $asset->file_name}; 194 } 195 push @{$assets}, $asset_1; 196 } 197 } 198 } 199 elsif ($q->param('asset_id') && !$id) { 184 200 my $asset = MT::Asset->load($q->param('asset_id')); 185 201 my $asset_1 = {asset_id => $asset->id, asset_name => $asset->file_name}; 186 202 push @{$assets}, $asset_1; 187 203 } 188 if ($id) {204 elsif ($id) { 189 205 my @assets = MT::Asset->load({ class => '*' }, 190 206 { join => MT::ObjectAsset->join_on(undef, {asset_id => \'= asset_id', object_ds => 'entry', object_id => $id })}); … … 201 217 $param->{asset_loop} = $assets; 202 218 } 203 219 204 220 ## Load categories and process into loop for category pull-down. 205 221 require MT::Placement; … … 1120 1136 } 1121 1137 for my $data ( 1122 qw( authored_on_date authored_on_time basename_manual basename_old category_ids tags )1138 qw( authored_on_date authored_on_time basename_manual basename_old category_ids tags include_asset_ids ) 1123 1139 ) 1124 1140 { -
trunk/lib/MT/CMS/Tools.pm
r4155 r4156 124 124 $tmpl = $app->load_tmpl( 'cms/dialog/recover.tmpl' ); 125 125 } 126 $param->{system_template} = 1; 126 127 $tmpl->param($param); 127 128 return $tmpl; … … 320 321 $tmpl = $app->load_tmpl( 'cms/dialog/new_password.tmpl' ); 321 322 } 323 $param->{system_template} = 1; 322 324 $tmpl->param($param); 323 325 return $tmpl; -
trunk/lib/MT/Core.pm
r4155 r4156 407 407 'GenerateTrackBackRSS' => { default => 0, }, 408 408 'DBIRaiseError' => { default => 0, }, 409 'SearchAlwaysAllowTemplateID' => { default => 0, }, 409 410 410 411 ## Search settings, copied from Jay's mt-search and integrated … … 584 585 'FastCGIMaxTime' => { default => 60 * 60 }, # 1 hour 585 586 'FastCGIMaxRequests' => { default => 1000 }, # 1000 requests 587 588 'RPTFreeMemoryLimit' => undef, 589 'RPTProcessCap' => undef, 590 'RPTSwapMemoryLimit' => undef, 591 'SchwartzClientDeadline' => undef, 592 'SchwartzFreeMemoryLimit' => undef, 593 'SchwartzSwapMemoryLimit' => undef, 586 594 }, 587 595 upgrade_functions => \&load_upgrade_fns, -
trunk/lib/MT/Image.pm
r3531 r4156 412 412 my($w, $h) = $image->get_dimensions(@_); 413 413 my $src = $image->{gd}; 414 my $gd = GD::Image->new($w, $h );414 my $gd = GD::Image->new($w, $h, 1); # True color image (24 bit) 415 415 $gd->copyResampled($src, 0, 0, 0, 0, $w, $h, $image->{width}, $image->{height}); 416 416 ($image->{gd}, $image->{width}, $image->{height}) = ($gd, $w, $h); … … 423 423 my ($size, $x, $y) = @param{qw( Size X Y )}; 424 424 my $src = $image->{gd}; 425 my $gd = GD::Image->new($size, $size );425 my $gd = GD::Image->new($size, $size, 1); # True color image (24 bit) 426 426 $gd->copy($src, 0, 0, $x, $y, $size, $size); 427 427 ($image->{gd}, $image->{width}, $image->{height}) = ($gd, $size, $size); -
trunk/lib/MT/L10N/de.pm
r4155 r4156 302 302 ## default_templates/signin.mtml 303 303 'Sign In' => 'Anmelden', 304 'You are signed in as ' => 'Sie sind angemeldet als ',304 'You are signed in as ' => 'Sie sind angemeldet als ', 305 305 'sign out' => 'abmelden', 306 306 'You do not have permission to sign in to this blog.' => 'Sie haben keine Berechtigung zur Anmeldung an diesem Blog.', … … 6018 6018 'This is set to the same URL as the original blog.' => 'Die URL entspricht der des Ursprungsblogs.', # Translate - New # OK 6019 6019 'This will overwrite the original blog.' => 'Das Ursprungsblog wird ÃŒberschrieben.', # Translate - New # OK 6020 6020 'No such template' => 'Keine solche Vorlage', # Translate - New 6021 'template_id cannot be a global template' => 'template_id kann keine globale Vorlage sein.', # Translate - New 6022 'Output file cannot be asp or php' => 'Die Ausgabedatei darf weder ASP noch PHP sein.', # Translate - New 6023 'You must pass a valid archive_type with the template_id' => 'template_id erfordert ein gÃŒltiges archive_type-Parameter.', # Translate - New 6024 'Template must have identifier entry_listing for non-Index archive types' => 'FÃŒr Nicht-Index-Archive sind in der Vorlage eine entry_listing-Angabe erforderlich.', # Translate - New 6025 'Blog file extension cannot be asp or php for these archives' => 'Dateien dieses Archivs dÃŒrfen weder auf .asp noch auf .php enden.', # Translate - New 6026 'Template must have identifier main_index for Index archive type' => 'FÃŒr Index-Archive sind in der Vorlage eine main_index-Angabe erforderlich. ', # Translate - New 6027 'Add New' => 'Neues Asset', # Translate - Case 6028 'No asset(s) associated with this [_1]' => 'Keine Assets verknÃŒpft ', # Translate - New 6021 6029 ); 6022 6030 -
trunk/lib/MT/L10N/es.pm
r4155 r4156 6018 6018 'This is set to the same URL as the original blog.' => 'La URL coincide con la original del blog.', # Translate - New 6019 6019 'This will overwrite the original blog.' => 'Esto sobreescribirá el blog original.', # Translate - New 6020 6020 'No such template' => 'Esa plantilla no existe', # Translate - New 6021 'template_id cannot be a global template' => 'template_id no puede ser una plantilla global', # Translate - New 6022 'Output file cannot be asp or php' => 'El fichero de salida no puede ser asp o php', # Translate - New 6023 'You must pass a valid archive_type with the template_id' => 'Debe pasar un tipo de archivo (archive_type) válido con el template_id', # Translate - New 6024 'Template must have identifier entry_listing for non-Index archive types' => 'La plantilla debe tener un identificador entry_listing para los tipos de archivos que no sean Ãndices', # Translate - New 6025 'Blog file extension cannot be asp or php for these archives' => 'El fichero del blog no puede ser asp o php para estos archivos', # Translate - New 6026 'Template must have identifier main_index for Index archive type' => 'La plantilla debe tener un identificador main_index para el tipo de archivos Ãndices', # Translate - New 6027 'Add New' => 'Añadir nuevo', # Translate - Case 6028 'No asset(s) associated with this [_1]' => 'No existe/n elemento/s asociados a [_1]', # Translate - New 6021 6029 ); 6022 6030 -
trunk/lib/MT/L10N/fr.pm
r4155 r4156 1655 1655 'Role Name' => 'Nom du rÃŽle', 1656 1656 'Roles Selected' => 'RÃŽles sélectionnés', 1657 '' => '', # Translate - New1658 1657 'Grant Permissions' => 'Ajouter des autorisations', 1659 1658 'You cannot delete your own association.' => 'Vous ne pouvez pas supprimer votre propre association.', … … 2557 2556 'Paths where logs are placed.' => 'Chemins où les logs seront placés', # Translate - New 2558 2557 'Logging Threshold' => 'Limite des logs', # Translate - New 2559 'Logging threshold for the App' => 'Limite des logs pour \'application', # Translate - New2558 'Logging threshold for the App' => 'Limite des logs pour l\'application', # Translate - New 2560 2559 'Send Email To' => 'Envoyer un email à ', # Translate - New 2561 2560 'The email address where you want to send test email to.' => 'Adresse email à laquelle vous souhaitez envoyer un email de test.', # Translate - New … … 6020 6019 'This is set to the same URL as the original blog.' => 'La valeur est la même URL que le blog original', # Translate - New 6021 6020 'This will overwrite the original blog.' => 'Cela réecrira le blog original', # Translate - New 6022 6021 'No such template' => 'Aucun gabarit', # Translate - New 6022 'template_id cannot be a global template' => 'template_id ne peut pas être un gabarit global', # Translate - New 6023 'Output file cannot be asp or php' => 'Le fichier de sortie ne peut pas être asp ou php', # Translate - New 6024 'You must pass a valid archive_type with the template_id' => 'Vous devez communiquer un archive_type valide avec un template_id', # Translate - New 6025 'Template must have identifier entry_listing for non-Index archive types' => 'Les gabarits doivent avoir un identifiant entry_listing pour des types d\'archives sans index', # Translate - New 6026 'Blog file extension cannot be asp or php for these archives' => 'L\'extention de fichiers d\'un blog ne peut pas être asp ou php', # Translate - New 6027 'Template must have identifier main_index for Index archive type' => 'Les gabarits doivent avoir un identifiant main_undex pour les archives de type Index', # Translate - New 6028 'Add New' => 'Nouvel élément', # Translate - Case 6029 'No asset(s) associated with this [_1]' => 'Aucun élément associé avec ce [_1]', # Translate - New 6023 6030 ); 6024 6031 -
trunk/lib/MT/L10N/ja.pm
r4155 r4156 855 855 'Invalid value: [_1]' => 'äžæ£ãªå€ã§ã: [_1]', 856 856 'No column was specified to search for [_1].' => '[_1]ã§æ€çŽ¢ããã«ã©ã ãæå®ãããŠããŸããã', 857 'No such template' => 'ãã³ãã¬ãŒãããããŸããã', # Translate - New 858 'template_id cannot be a global template' => 'template_id ã«ã°ããŒãã«ãã³ãã¬ãŒãã¯æå®ã§ããŸããã', # Translate - New 859 'Output file cannot be asp or php' => 'åºåãã¡ã€ã«åã«aspãphpã¯æå®ã§ããŸããã', # Translate - New 860 'You must pass a valid archive_type with the template_id' => 'template_idãšarchive_typeãæå®ããŠãã ããã', # Translate - New 861 'Template must have identifier entry_listing for non-Index archive types' => 'ã€ã³ããã¯ã¹ä»¥å€ã®ãã³ãã¬ãŒãã§ã¯ãentry_listingã®ãã³ãã¬ãŒãããæå®ã§ããŸããã', # Translate - New 862 'Blog file extension cannot be asp or php for these archives' => 'ãã®ã¢ãŒã«ã€ãã§aspãphpãåºåãã¡ã€ã«åã«æå®ããããšã¯ã§ããŸããã', # Translate - New 863 'Template must have identifier main_index for Index archive type' => 'main_indexã®ãã³ãã¬ãŒãããæå®ã§ããŸããã', # Translate - New 857 864 'The search you conducted has timed out. Please simplify your query and try again.' => 'ã¿ã€ã ã¢ãŠãããŸããããææ°ã§ããæ€çŽ¢ãããçŽããŠãã ããã', 858 865 … … 1263 1270 ## lib/MT/CMS/Asset.pm 1264 1271 'Files' => 'ãã¡ã€ã«', 1272 'Extension changed from [_1] to [_2]' => 'æ¡åŒµåã[_1]ãã[_2]ã«å€æŽããŸããã', # Translate - New 1265 1273 'Can\'t load file #[_1].' => 'ID:[_1]ã®ãã¡ã€ã«ãããŒãã§ããŸããã', 1266 1274 'No permissions' => 'æš©éããããŸããã', … … 1316 1324 ¥åããŠçµã蟌ã¿', 1317 1325 'Blog Name' => 'ããã°å', 1326 '[_1] changed from [_2] to [_3]' => '[_1]ã[_2]ãã[_3]ãžå€æŽããŸããã', # Translate - New 1318 1327 'Saved Blog Changes' => 'ããã°ãžã®å€æŽå 1319 1328 容', … … 1388 1397 'Save failed: [_1]' => 'ä¿åã§ããŸããã§ãã: [_1]', 1389 1398 'Saving object failed: [_1]' => 'ãªããžã§ã¯ããä¿åã§ããŸããã§ãã: [_1]', 1399 '\'[_1]\' edited the template \'[_2]\' in the blog \'[_3]\'' => '[_1] ã ããã° [_3] ã®ãã³ãã¬ãŒãã[_2]ããç·šéããŸããã', # Translate - New 1400 '\'[_1]\' edited the global template \'[_2]\'' => '[_1] ãã°ããŒãã«ãã³ãã¬ãŒã [_2] ãç·šéããŸããã', # Translate - New 1390 1401 'Invalid parameter' => 'äžæ£ãªãã©ã¡ãŒã¿ã§ãã', 1391 1402 'Load failed: [_1]' => 'ããŒãã§ããŸããã§ãã: [_1]', … … 1407 1418 ã®ããã°ãšåããµã€ããã¹ã§ãã', 1408 1419 'You need to specify a Site Path' => 'ãµã€ããã¹ãæå®ããŠãã ããã', 1409 'Entries must be cloned if trackbacks or comments are cloned' => 'ã³ã¡ã³ããŸãã¯ãã©ãã¯ããã¯ãè€è£œãããšãã¯ããã°èšäºãè€è£œããªããã°ãªããŸããã',1420 'Entries must be cloned if comments and trackbacks are cloned' => 'ã³ã¡ã³ããŸãã¯ãã©ãã¯ããã¯ãè€è£œãããšãã¯ããã°èšäºãè€è£œããªããã°ãªããŸããã', 1410 1421 'Entries must be cloned if comments are cloned' => 'ã³ã¡ã³ããè€è£œãããšãã¯ããã°èšäºãè€è£œããªããã°ãªããŸããã', 1411 1422 'Entries must be cloned if trackbacks are cloned' => 'ãã©ãã¯ããã¯ãè€è£œãããšãã¯ããã°èšäºãè€è£œããªããã°ãªããŸããã', … … 1595 1606 'Test email from Movable Type' => 'Movable Type ããã®ãã¹ãã¡ãŒã«ã§ã', 1596 1607 'This is the test email sent by your installation of Movable Type.' => 'Movable Type ããéä¿¡ããããã¹ãã¡ãŒã«ã§ãã', 1597 'Mail was not properly sent' => 'ã¡ãŒã«ãéä¿¡ããŸãã', 1608 'Mail was not properly sent' => 'ã¡ãŒã«ãéä¿¡ã§ããŸããã§ãã', 1609 'Test e-mail was successfully sent to [_1]' => 'ãã¹ãã¡ãŒã«ã [_1] ã«éä¿¡ããŸããã', # Translate - New 1610 'These setting(s) are overridden by a value in the MT configuration file: [_1]. Remove the value from the configuration file in order to control the value on this page.' => 'ãã®èšå®ããã[_1]ã«æå®ãããŠããå€ã®æ¹ãåªå 1611 ãããŸãããã®ããŒãžã§èšå®ãè¡ãå Žåã¯ãã¡ã€ã«ããå€ãåé€ããŠãã ããã', # Translate - New 1612 'Email address is [_1]' => 'ã¡ãŒã«ã¢ãã¬ã¹: [_1]', # Translate - New 1613 'Debug mode is [_1]' => 'ãããã°ã¢ãŒã: [_1]', # Translate - New 1614 'Performance logging is on' => 'ããã©ãŒãã³ã¹ãã°: ON', # Translate - New 1615 'Performance logging is off' => 'ããã©ãŒãã³ã¹ãã°: OFF', # Translate - New 1616 'Performance log path is [_1]' => 'ããã©ãŒãã³ã¹ãã°ã®ãã¹: [_1]', # Translate - New 1617 'Performance log threshold is [_1]' => 'ããã©ãŒãã³ã¹ãã°ã®ãããå€: [_1]', # Translate - New 1618 'System Settings Changes Took Place' => 'ã·ã¹ãã èšå®ãžã®æŽæ°', # Translate - New 1598 1619 'Invalid password recovery attempt; can\'t recover password in this configuration' => 'ãã¹ã¯ãŒãã®åèšå®ã«å€±æããŸããããã®æ§æã§ã¯åèšå®ã¯ã§ããŸããã', 1599 1620 'Invalid author_id' => 'ãŠãŒã¶ãŒã®IDãäžæ£ã§ãã', … … 3072 3093 ## tmpl/cms/dialog/clone_blog.tmpl 3073 3094 'Verify Blog Settings' => 'ããã°ã®èšå®ã確èªãã', 3095 'This is set to the same URL as the original blog.' => 'å 3096 ã®ããã°ãšåãURLãèšå®ãããŠããŸãã', # Translate - New 3097 'This will overwrite the original blog.' => 'ãã®ãŸãŸã«ããŠãããšå 3098 ã®ããã°ãäžæžãããŠããŸããŸãã', # Translate - New 3074 3099 'This is set to the same URL as the original blog. Would you like to <a href="javascript:history.back()" id="site-url-back-link">go back</a> and change it?' => 'å 3075 3100 ã®ããã°ãšåãURLãèšå®ãããŠããŸãã<a href="javascript:history.back()" id="site-url-back-link">æ»ã£ãŠèšå®ã倿Ž</a>ããŸãã?', … … 3523 3548 'Outbound TrackBack URLs' => 'ãã©ãã¯ããã¯éä¿¡å 3524 3549 URL', 3525 'The published order of these assets can be changed using template tag modifiers.' => 'å 3526 ¬éãããšãã®äžŠã³é ã¯ãã³ãã¬ãŒãã¿ã°ã®ã¢ãã£ãã¡ã€ã¢ã§å€æŽã§ããŸãã', 3550 'No asset(s) associated with this [_1]' => '[_1] äºé¢é£ã¥ããããã¢ã€ãã ã¯ãããŸããã', # Translate - New 3551 'The published order of these assets can be changed using [_1]template tag modifiers[_2].' => 'å 3552 ¬éãããšãã®äžŠã³é ã¯[_1]ãã³ãã¬ãŒãã¿ã°ã®ã¢ãã£ãã¡ã€ã¢[_2]ã§å€æŽã§ããŸãã', 3527 3553 'You have unsaved changes to this entry that will be lost.' => 'ä¿åãããŠããªãããã°èšäºãžã®å€æŽã¯å€±ãããŸãã', 3528 3554 'You have unsaved changes to this page that will be lost.' => 'ä¿åãããŠããªããŠã§ãããŒãžãžã®å€æŽã¯å€±ãããŸãã', -
trunk/lib/MT/L10N/nl.pm
r4155 r4156 6019 6019 'This is set to the same URL as the original blog.' => 'Dit staat ingesteld op dezelfde URL als de oorspronkelijke blog.', # Translate - New 6020 6020 'This will overwrite the original blog.' => 'Dit zal de oorspronkelijke blog overschrijven.', # Translate - New 6021 6022 6021 'No such template' => 'Sjabloon bestaat niet', # Translate - New 6022 'template_id cannot be a global template' => 'template_id mag geen systeemsjabloon zijn', # Translate - New 6023 'Output file cannot be asp or php' => 'Uitvoerbestand mag geen asp of php zijn', # Translate - New 6024 'You must pass a valid archive_type with the template_id' => 'U moet een geldig archieftype doorgeven met het template_id', # Translate - New 6025 'Template must have identifier entry_listing for non-Index archive types' => 'Sjabloon moet de identifier \'entry_listing\' hebben voor niet-index archieftypes', # Translate - New 6026 'Blog file extension cannot be asp or php for these archives' => 'Blogextensie kan niet asp of php zijn voor deze archieven', # Translate - New 6027 'Template must have identifier main_index for Index archive type' => 'Sjabloon moet de identifier \'main_index\' hebben voor het index archieftype', # Translate - New 6028 'Add New' => 'Nieuw toevogen', # Translate - Case 6029 'No asset(s) associated with this [_1]' => 'Geen mediabestan(en) geassociëerd met [_1]', # Translate - New 6030 6023 6031 ); 6024 6032 -
trunk/lib/MT/Meta.pm
- Property svn:keywords set to Author Date Id Revision
r4155 r4156 3 3 # GNU General Public License, version 2. 4 4 # 5 # $Id : Meta.pm 71460 2008-01-18 18:01:06Z ykerherve$5 # $Id$ 6 6 7 7 package MT::Meta; -
trunk/lib/MT/Meta/Proxy.pm
- Property svn:keywords set to Author Date Id Revision
r4155 r4156 3 3 # GNU General Public License, version 2. 4 4 # 5 # $Id : Proxy.pm 71506 2008-01-18 23:13:43Z ykerherve$5 # $Id$ 6 6 7 7 package MT::Meta::Proxy; -
trunk/lib/MT/ObjectDriverFactory.pm
r4155 r4156 128 128 if ( my $dbh = $driver->dbh ) { 129 129 $dbh->disconnect; 130 $driver->dbh(undef); 130 131 } 131 132 $MT::Object::DRIVER = undef; … … 135 136 if ( my $dbh = $driver->dbh ) { 136 137 $dbh->disconnect; 138 $driver->dbh(undef); 137 139 } 138 140 } -
trunk/lib/MT/Serialize.pm
r4155 r4156 110 110 } elsif ($ref eq 'ARRAY') { 111 111 $frozen .= 'A' . pack('N', scalar(@$value)); 112 push(@stack, ['ARRAY' => @$value]); 112 push(@stack, ['ARRAY' => @$value]) 113 if scalar @$value; 113 114 } elsif ($ref eq 'HASH') { 114 $frozen .= 'H' . pack('N', scalar(keys %$value)); 115 push(@stack, ['HASH' => %$value]); 115 $frozen .= 'H' . pack('N', scalar(keys %$value)); 116 push(@stack, ['HASH' => %$value]) 117 if scalar keys %$value; 116 118 } else { 117 119 die "Unexpected type '$ref' in _macrofreeze\n"; -
trunk/lib/MT/Summary.pm
- Property svn:keywords set to Author Date Id Revision
r4155 r4156 1 # Movable Type (r) (C) 2001-2009 Six Apart, Ltd. All Rights Reserved. 2 # This code cannot be redistributed without permission from www.sixapart.com. 3 # For more information, consult your Movable Type license. 1 # Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 2 # This program is distributed under the terms of the 3 # GNU General Public License, version 2. 4 # 5 # $Id$ 4 6 5 7 package MT::Summary; -
trunk/lib/MT/Summary/Author.pm
- Property svn:keywords set to Author Date Id Revision
r4155 r4156 1 # Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 2 # This program is distributed under the terms of the 3 # GNU General Public License, version 2. 4 # 5 # $Id$ 1 6 2 7 # Core Summary Object Framework functions for MT::Author -
trunk/lib/MT/Summary/Entry.pm
- Property svn:keywords set to Author Date Id Revision
r4155 r4156 1 # Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 2 # This program is distributed under the terms of the 3 # GNU General Public License, version 2. 4 # 5 # $Id$ 1 6 2 7 # Core Summary Object Framework functions for MT::Entry -
trunk/lib/MT/Summary/Proxy.pm
- Property svn:keywords set to Author Date Id Revision
r4155 r4156 1 # Movable Type (r) (C) 2001-2009 Six Apart, Ltd. All Rights Reserved.2 # This code cannot be redistributed without permission from www.sixapart.com.3 # For more information, consult your Movable Type license.1 # Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 2 # This program is distributed under the terms of the 3 # GNU General Public License, version 2. 4 4 # 5 # $Id : Proxy.pm 71506 2008-01-18 23:13:43Z ykerherve$5 # $Id$ 6 6 7 7 package MT::Summary::Proxy; -
trunk/lib/MT/Summary/Triggers.pm
- Property svn:keywords set to Author Date Id Revision
r4155 r4156 1 # Movable Type (r) (C) 2001-2009 Six Apart, Ltd. All Rights Reserved.2 # This code cannot be redistributed without permission from www.sixapart.com.3 # For more information, consult your Movable Type license.1 # Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 2 # This program is distributed under the terms of the 3 # GNU General Public License, version 2. 4 4 # 5 # $Id : Proxy.pm 71506 2008-01-18 23:13:43Z ykerherve$5 # $Id$ 6 6 7 7 package MT::Summary::Triggers; -
trunk/lib/MT/Template/ContextHandlers.pm
r4155 r4156 7964 7964 # for the case that we want to use mt:Entries with mt-search 7965 7965 # send to MT::Template::Search if searh results are found 7966 my $results_iter = $ctx->stash('results'); 7967 require MT::Template::Context::Search; 7968 return MT::Template::Context::Search::_hdlr_results($ctx, $args, $cond) if ($results_iter); 7966 if ($ctx->stash('results') && $args->{search_results} == 1) { 7967 require MT::Template::Context::Search; 7968 return MT::Template::Context::Search::_hdlr_results($ctx, $args, $cond); 7969 } 7969 7970 7970 7971 $ctx->set_blog_load_context($args, \%blog_terms, \%blog_args) -
trunk/lib/MT/Worker/Summarize.pm
- Property svn:keywords set to Author Date Id Revision
r4155 r4156 1 # Movable Type (r) (C) 2001-2009 Six Apart, Ltd. All Rights Reserved. 2 # This code cannot be redistributed without permission from www.sixapart.com. 3 # For more information, consult your Movable Type license. 1 # Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 2 # This program is distributed under the terms of the 3 # GNU General Public License, version 2. 4 # 5 # $Id$ 4 6 5 7 package MT::Worker::Summarize; -
trunk/lib/MT/Worker/SummaryWatcher.pm
- Property svn:keywords set to Author Date Id Revision
r4155 r4156 1 # Movable Type (r) (C) 2001-2009 Six Apart, Ltd. All Rights Reserved. 2 # This code cannot be redistributed without permission from www.sixapart.com. 3 # For more information, consult your Movable Type license. 1 # Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 2 # This program is distributed under the terms of the 3 # GNU General Public License, version 2. 4 # 5 # $Id$ 4 6 5 7 package MT::Worker::SummaryWatcher; … … 14 16 my $class = shift; 15 17 my TheSchwartz::Job $job = shift; 16 my $registry = MT->registry; 18 #my $registry = MT->registry; 19 my $registry = MT->registry("summaries"); 17 20 use Data::Dumper; 18 for my $summarizable ( keys %{ $registry->{summaries} } ) { 21 #for my $summarizable ( keys %{ $registry->{summaries} } ) { 22 for my $summarizable ( keys %{ $registry } ) { 19 23 my $meta_pkg = MT->model($summarizable)->meta_pkg('summary'); 20 24 my $summ_iter … … 24 28 while ( my $summary = $summ_iter->() ) { 25 29 my $priority 26 = $registry->{summaries}->{$summarizable}->{ $summary->class } 30 # = $registry->{summaries}->{$summarizable}->{ $summary->class } 31 = $registry->{$summarizable}->{ $summary->class } 27 32 ->{priority}; 28 33 $priority ||= undef; 29 my $id = $summary->$id_field;34 my $id = $summary->$id_field; 30 35 my $class_type = MT->model($summarizable)->class_type 31 36 || MT->model($summarizable)->datasource; -
trunk/php/lib/block.mtifarchivetypeenabled.php
r3531 r4156 14 14 $at = preg_quote($at); 15 15 $blog_at = ',' . $blog['blog_archive_type'] . ','; 16 $enabled = preg_match("/,$at,/", $blog_at); 17 $map = $ctx->mt->db->fetch_templatemap( 18 array('type' => $at, 'blog_id' => $blog['blog_id'])); 19 if (empty($map)) 20 $enabled = 0; 16 $enabled = 0; 17 $at_exists = preg_match("/,$at,/", $blog_at); 18 if ($at_exists) { 19 $maps = $ctx->mt->db->fetch_templatemap( 20 array('type' => $at, 'blog_id' => $blog['blog_id'])); 21 if (!empty($maps)) { 22 foreach ($maps as $map) { 23 if ($map['templatemap_build_type']) 24 $enabled++; 25 } 26 } 27 } 21 28 return $ctx->_hdlr_if($args, $content, $ctx, $repeat, $enabled); 22 29 } else { -
trunk/tmpl/cms/dialog/asset_insert.tmpl
r4155 r4156 3 3 window.parent.app.insertHTML( '<mt:var name="upload_html" escape="js">', '<mt:var name="edit_field" escape="js">' ); 4 4 </mt:setvarblock> 5 6 5 7 <script type="text/javascript"> 6 8 /* <![CDATA[ */ 9 10 // do the following first... asset manager stuff is ONLY for edit entry 11 <mt:if name="upload_html"> 12 <mt:var name="insert_script"> 13 </mt:if> 14 15 <mt:unless name="extension_message"> 16 closeDialog(); 17 </mt:unless> 7 18 8 19 // remove the no assets text if it's there … … 12 23 } 13 24 14 // make sure the asset isn't there already 15 var Asset = window.parent.document.getElementById("list-asset-<mt:AssetID>"); 16 if (Asset) { 17 // do nothing 25 // make sure asset list is present in an entry edit page 26 var AssetList = window.parent.document.getElementById("asset-list"); 27 28 if (AssetList) { 29 // make sure the asset isn't there already and that we're in the edit entry page 30 var Asset = window.parent.document.getElementById("list-asset-<mt:AssetID>"); 31 32 if (Asset) { 33 // do nothing 34 } 35 else { 36 // add the asset's id to the include_asset_ids hidden input 37 var asset_ids = window.parent.document.getElementById("include_asset_ids").value; 38 window.parent.document.getElementById("include_asset_ids").value = asset_ids + ",<mt:AssetID>"; 39 40 // create the link to the asset page with asset name as label 41 var myAssetLink = window.document.createElement('a'); 42 myAssetLink.setAttribute('href', '<mt:CGIPath><mt:AdminScript>?__mode=view&_type=asset&blog_id=<mt:var name="blog_id">&id=<mt:AssetID>'); 43 myAssetLink.appendChild(document.createTextNode('<mt:AssetFileName encode_js="1">')); 44 45 // create the remove link icon 46 var myRemoveIcon = window.document.createElement('img'); 47 myRemoveIcon.setAttribute('src', '<mt:StaticWebPath>images/status_icons/close.gif'); 48 myRemoveIcon.setAttribute('alt', 'Remove asset'); 49 50 // create the remove link for this asset 51 var myRemoveLink = window.document.createElement('a'); 52 myRemoveLink.setAttribute('href', 'javascript:removeAssetFromList(<mt:AssetID>)'); 53 myRemoveLink.setAttribute('class', 'remove-asset'); 54 myRemoveLink.appendChild(myRemoveIcon); 55 56 // create the asset list item 57 var myElement = window.document.createElement('li'); 58 myElement.setAttribute('id', 'list-asset-<mt:AssetID>'); 59 <mt:If tag="AssetType" eq="image"> 60 myElement.setAttribute('onmouseover', 'show(\'list-image-<mt:AssetID>\', window.parent.document)'); 61 myElement.setAttribute('onmouseout','hide(\'list-image-<mt:AssetID>\', window.parent.document)'); 62 </mt:If> 63 myElement.appendChild(myAssetLink); 64 myElement.appendChild(myRemoveLink); 65 66 // I HATE IE! 67 if (document.attachEvent) { 68 var oldLis = window.parent.document.getElementById("asset-list").innerHTML; 69 var newLi = '<li id="list-asset-<mt:AssetID>" onmouseover="show(\'list-image-<mt:AssetID>\', window.parent.document)" onmouseout="hide(\'list-image-<mt:AssetID>\', window.parent.document)">' 70 + myElement.innerHTML + '</li>'; 71 window.parent.document.getElementById("asset-list").innerHTML = oldLis + newLi; 72 } 73 else { 74 window.parent.document.getElementById("asset-list").appendChild(myElement); 75 } 76 77 // create the image thumbnail if it exists 78 <mt:If tag="AssetType" eq="image"> 79 var myImageElement = window.document.createElement('img'); 80 myImageElement.setAttribute('id', 'list-image-<mt:AssetID>'); 81 myImageElement.setAttribute('src', '<mt:AssetThumbnailURL width="100" encode_js="1">'); 82 myImageElement.setAttribute('class', 'list-image hidden'); 83 myElement.appendChild(myImageElement); 84 </mt:If> 85 } 18 86 } 19 else {20 // add the asset's id to the include_asset_ids hidden input21 var asset_ids = window.parent.document.getElementById("include_asset_ids").value;22 window.parent.document.getElementById("include_asset_ids").value = asset_ids + ",<mt:AssetID>";23 24 // create the link to the asset page with asset name as label25 var myAssetLink = window.document.createElement('a');26 myAssetLink.setAttribute('href', '<mt:CGIPath><mt:AdminScript>?__mode=view&_type=asset&blog_id=<mt:var name="blog_id">&id=<mt:AssetID>');27 myAssetLink.appendChild(document.createTextNode('<mt:AssetFileName encode_js="1">'));28 29 // create the remove link icon30 var myRemoveIcon = window.document.createElement('img');31 myRemoveIcon.setAttribute('src', '<mt:StaticWebPath>images/status_icons/close.gif');32 myRemoveIcon.setAttribute('alt', 'Remove asset');33 34 // create the remove link for this asset35 var myRemoveLink = window.document.createElement('a');36 myRemoveLink.setAttribute('href', 'javascript:removeAssetFromList(<mt:AssetID>)');37 myRemoveLink.setAttribute('class', 'remove-asset');38 myRemoveLink.appendChild(myRemoveIcon);39 40 // create the asset list item41 var myElement = window.document.createElement('li');42 myElement.setAttribute('id', 'list-asset-<mt:AssetID>');43 <mt:If tag="AssetType" eq="image">44 myElement.setAttribute('onmouseover', 'show(\'list-image-<mt:AssetID>\', window.parent.document)');45 myElement.setAttribute('onmouseout','hide(\'list-image-<mt:AssetID>\', window.parent.document)');46 </mt:If>47 myElement.appendChild(myAssetLink);48 myElement.appendChild(myRemoveLink);49 50 // I HATE IE!51 if (document.attachEvent) {52 var oldLis = window.parent.document.getElementById("asset-list").innerHTML;53 var newLi = '<li id="list-asset-<mt:AssetID>" onmouseover="show(\'list-image-<mt:AssetID>\', window.parent.document)" onmouseout="hide(\'list-image-<mt:AssetID>\', window.parent.document)">'54 + myElement.innerHTML + '</li>';55 window.parent.document.getElementById("asset-list").innerHTML = oldLis + newLi;56 }57 else {58 window.parent.document.getElementById("asset-list").appendChild(myElement);59 }60 61 // create the image thumbnail if it exists62 <mt:If tag="AssetType" eq="image">63 var myImageElement = window.document.createElement('img');64 myImageElement.setAttribute('id', 'list-image-<mt:AssetID>');65 myImageElement.setAttribute('src', '<mt:AssetThumbnailURL width="100" encode_js="1">');66 myImageElement.setAttribute('class', 'list-image hidden');67 myElement.appendChild(myImageElement);68 </mt:If>69 }70 <mt:if name="upload_html">71 <mt:var name="insert_script">72 </mt:if>73 74 <mt:unless name="extension_message">75 closeDialog();76 </mt:unless>77 87 78 88 /* ]]> */ … … 85 95 <mt:var name="extension_message"> 86 96 </mtapp:statusmsg> 87 </mt:if>88 97 89 <div class="actions-bar">90 98 <div class="actions-bar-inner pkg actions"> 91 99 <form action="" method="get" onsubmit="return false"> … … 99 107 </form> 100 108 </div> 101 </div> 109 </mt:if> 110 102 111 103 112 <mt:include name="dialog/footer.tmpl"> -
trunk/tmpl/cms/edit_entry.tmpl
r4155 r4156 475 475 <mtapp:widget 476 476 id="asset_container" 477 label=" Assets">477 label="<__trans phrase="Assets">"> 478 478 <div class="asset-list-header"> 479 479 <a href="javascript:void(0)" class="add-new-asset-link" 480 480 onclick="openDialog(null,'list_assets','_type=asset&edit_field=&blog_id=<mt:var name="blog_id">&dialog_view=1&no_insert=1');return false;"> 481 Add New481 <__trans phrase="Add New"> 482 482 </a> 483 483 </div> … … 500 500 </mt:loop> 501 501 <mt:else> 502 <li id="empty-asset-list"> No asset(s) associated with this <mt:var name="object_type"></li>502 <li id="empty-asset-list"><__trans phrase="No asset(s) associated with this [_1]" params="<mt:var name="object_type">"></li> 503 503 </mt:if> 504 504 </ul>
