X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fchangelanguage.pl;h=60953240bd04b8a3fc2d191aceae286bcf9cb800;hb=0d4acbba5c5db238eb42ed37dc9ba3dc2f36974b;hp=4ab3d3b68adb2886d42ab489381d35b5e4bee0e7;hpb=fc1342f73df868410e0ab670981f25ba2e1acd74;p=koha_fer diff --git a/opac/changelanguage.pl b/opac/changelanguage.pl index 4ab3d3b68a..60953240bd 100755 --- a/opac/changelanguage.pl +++ b/opac/changelanguage.pl @@ -11,15 +11,18 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use C4::Output; +use strict; +use warnings; + +use C4::Templates; use CGI; my $query = new CGI; my $language = $query->param('language'); my $url = $query->referer(); -setlanguagecookie( $query, $language, $url ); +C4::Templates::setlanguagecookie( $query, $language, $url );