~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to upgrade/steps/WelcomeStep.class

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * $RCSfile: WelcomeStep.class,v $
4
4
 *
5
5
 * Gallery - a web based photo album viewer and editor
6
 
 * Copyright (C) 2000-2005 Bharat Mediratta
 
6
 * Copyright (C) 2000-2006 Bharat Mediratta
7
7
 *
8
8
 * This program is free software; you can redistribute it and/or modify
9
9
 * it under the terms of the GNU General Public License as published by
26
26
    }
27
27
 
28
28
    function processRequest() {
29
 
        if (isset($_GET['language'])) {
 
29
        if (isset($_POST['language'])) {
30
30
            global $translator;
31
 
            $translator->init($_GET['language']);
32
 
            $_SESSION['language'] = $_GET['language'];
 
31
            $translator->init($_POST['language'], true);
 
32
            $_SESSION['language'] = $_POST['language'];
33
33
        }
34
34
        return true;
35
35
    }
42
42
            return;
43
43
        }
44
44
 
 
45
        $templateData['mode.maintenance'] = @$gallery->getConfig('mode.maintenance');
45
46
        $templateData['totalSteps'] = count($GLOBALS['steps'])-1;
46
47
        $templateData['bodyFile'] = 'Welcome.html';
47
48
        $this->setComplete(true);