Bug 12023: (follow-up) fix redirect to step 3
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 22 May 2014 11:00:07 +0000 (13:00 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 23 May 2014 13:21:35 +0000 (13:21 +0000)
This patch fixes the redirection to step 3.

If you go on installer/install.pl and Koha is already installed,
you should be redirected to the step 3. Without this patch, the
script raised an internal error (500).

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
installer/install.pl

index e2ee372..389dabd 100755 (executable)
@@ -397,8 +397,8 @@ else {
         if ( $rq->execute ) {
             my ($version) = $rq->fetchrow;
             if ($version) {
-                $query->redirect("install.pl?step=3");
-                               exit;
+                print $query->redirect("/cgi-bin/koha/installer/install.pl?step=3");
+                exit;
             }
         }
     }