Back link on upgrade help page.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 30 Sep 2009 22:17:47 +0000 (22:17 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 30 Sep 2009 22:17:47 +0000 (22:17 +0000)
includes/current_user.inc

index 94b7c2ffaa86f079c786071641004faf38a96b5c..a4ee5e85da39e7cd211d64fc21612f7c177ac662 100644 (file)
@@ -54,7 +54,7 @@ class current_user
 
        function login($company, $loginname, $password)
        {
-               global $security_areas, $security_groups, $security_headings;
+               global $security_areas, $security_groups, $security_headings, $path_to_root;
                
                $this->set_company($company);
            $this->logged = false;
@@ -73,6 +73,7 @@ class current_user
                                        if (!isset($security_groups) || !isset($security_headings)) {
                                                echo "<center><br><br><font size='5' color='red'><b>";
                                                echo _('Before software upgrade you have to include old $security_groups and $security_headings arrays from old config.php file to the new one.');
+                                               echo '<br>'."<a href=$path_to_root/index.php>"._("Back")."</a>";
                                                echo "</b></font><br><br></center>";
                                                exit;
                                        }