Bugzilla – Attachment 29583 Details for
Bug 11349
PROG/CCSR deprecation: Remove .tmpl -> .tt translation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11349: Remove unnecesary name translation
Bug-11349-Remove-unnecesary-name-translation.patch (text/plain), 1.85 KB, created by
Tomás Cohen Arazi (tcohen)
on 2014-07-09 14:06:58 UTC
(
hide
)
Description:
Bug 11349: Remove unnecesary name translation
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2014-07-09 14:06:58 UTC
Size:
1.85 KB
patch
obsolete
>From 5be40aa9af25433b80a44598f4a96478f21dac90 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Tue, 8 Jul 2014 11:41:11 -0300 >Subject: [PATCH] Bug 11349: Remove unnecesary name translation > >Since all scripts use the '.tt' sufix for template names >there's no need for and regexp that changes from '.tmpl' >to '.tt'. > >Regards >To+ >--- > C4/Templates.pm | 17 ----------------- > 1 file changed, 17 deletions(-) > >diff --git a/C4/Templates.pm b/C4/Templates.pm >index b326f53..e6675d2 100644 >--- a/C4/Templates.pm >+++ b/C4/Templates.pm >@@ -217,28 +217,11 @@ sub gettemplate { > my ( $tmplbase, $interface, $query, $is_plugin ) = @_; > ($query) or warn "no query in gettemplate"; > my $path = C4::Context->preference('intranet_includes') || 'includes'; >- $tmplbase =~ s/\.tmpl$/.tt/; > my ($htdocs, $theme, $lang, $filename) > = _get_template_file($tmplbase, $interface, $query); > $filename = $tmplbase if ( $is_plugin ); > my $template = C4::Templates->new($interface, $filename, $tmplbase, $query); > >-# NOTE: Commenting these out rather than deleting them so that those who need >-# to know how we previously shimmed these directories will be able to understand. >-# my $is_intranet = $interface eq 'intranet'; >-# my $themelang = >-# ($is_intranet ? '/intranet-tmpl' : '/opac-tmpl') . >-# "/$theme/$lang"; >-# $template->param( >-# themelang => $themelang, >-# yuipath => C4::Context->preference("yuipath") eq "local" >-# ? "$themelang/lib/yui" >-# : C4::Context->preference("yuipath"), >-# interface => $is_intranet ? '/intranet-tmpl' : '/opac-tmpl', >-# theme => $theme, >-# lang => $lang >-# ); >- > # Bidirectionality, must be sent even if is the only language > my $current_lang = regex_lang_subtags($lang); > my $bidi; >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11349
:
29582
|
29583
|
29584
|
29773
|
29774
|
29775
|
29776
|
29777
|
29778
|
29782
|
29783
|
29784
|
29785