[Koha-bugs] [Bug 27293] New: Refactor C4::Templates and C4::Languages to not use CGI objects directly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 22 08:12:49 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27293

            Bug ID: 27293
           Summary: Refactor C4::Templates and C4::Languages to not use
                    CGI objects directly
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

If you look through C4::Templates and C4::Languages, you'll see CGI objects
being passed around a lot.

In the end, all that C4::Templates::gettemplate() and
C4::Languages::getlanguage need are the "language" param and the
"KohaOpacLanguage" cookie. We should be fetching these appropriately from the
CGI or PSGI or whatever context at a higher level and passing back the data
rather than the objects.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list