Bugzilla – Attachment 5528 Details for
Bug 6205
doc-head-open.inc not found.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6205 - if an include doesn't exist, fall back to en
Bug-6205---if-an-include-doesnt-exist-fall-back-to.patch (text/plain), 1.20 KB, created by
Robin Sheat
on 2011-09-22 03:36:27 UTC
(
hide
)
Description:
Bug 6205 - if an include doesn't exist, fall back to en
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2011-09-22 03:36:27 UTC
Size:
1.20 KB
patch
obsolete
>From 25a2f7fd8bfceeaf0542eafe54e1bf7f1d660ce4 Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Thu, 22 Sep 2011 15:32:24 +1200 >Subject: [PATCH] Bug 6205 - if an include doesn't exist, fall back to en > >If a language that doesn't exist gets accessed, then it will fall back >to en for the templates, but not for the includes, so everything still >dies. This allows the process to work in this case too. >--- > C4/Templates.pm | 11 ++++++----- > 1 files changed, 6 insertions(+), 5 deletions(-) > >diff --git a/C4/Templates.pm b/C4/Templates.pm >index 4368492..f84fad3 100644 >--- a/C4/Templates.pm >+++ b/C4/Templates.pm >@@ -51,12 +51,13 @@ sub new { > > my ( $theme, $lang ) = themelanguage( $htdocs, $tmplbase, $interface ); > my $template = Template->new( >- { >- EVAL_PERL => 1, >+ { EVAL_PERL => 1, > ABSOLUTE => 1, >- INCLUDE_PATH => "$htdocs/$theme/$lang/includes", >- FILTERS => {}, >- >+ INCLUDE_PATH => [ >+ "$htdocs/$theme/$lang/includes", >+ "$htdocs/$theme/en/includes" >+ ], >+ FILTERS => {}, > } > ) or die Template->error(); > my $self = { >-- >1.7.4.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 6205
:
5528
|
5576