Author: mathias
Date: 2007-04-13 16:38:36 +0000 (Fri, 13 Apr 2007)
New Revision: 12642

Modified:
   trunk/website/includes/common.inc.php
Log:
doh x 2


Modified: trunk/website/includes/common.inc.php
===================================================================
--- trunk/website/includes/common.inc.php       2007-04-13 16:35:50 UTC (rev 
12641)
+++ trunk/website/includes/common.inc.php       2007-04-13 16:38:36 UTC (rev 
12642)
@@ -42,9 +42,9 @@
        if (isset($page))
        {
                #echo "common - page exists 
".dirname(__FILE__).'/'.$page.'.inc.php';
-               if (file_exists(dirname(__FILE__).$page.'.inc.php')) {
+               if (file_exists(dirname(__FILE__).'/'.$page.'.inc.php')) {
                        #echo "file exists";
-                       include dirname(__FILE__).$page.'.inc.php';             
                                        // include file with  $pages-array
+                       include dirname(__FILE__).'/'.$page.'.inc.php';         
                                        // include file with  $pages-array
                        foreach ( $lang_q as $aLang => $relevance )             
                                        // loop through each language
                        {       
                                foreach ( $pages as $userlang => $path )        
                                        // loop through each language-file
@@ -78,9 +78,9 @@

        if (isset($page))
        {
-               if (file_exists(dirname(__FILE__).$page.'.inc.php')) 
+               if (file_exists(dirname(__FILE__).'/'.$page.'.inc.php')) 
                {
-                       include dirname(__FILE__).$page.'.inc.php';     
+                       include dirname(__FILE__).'/'.$page.'.inc.php'; 

                        $out .= '<div id="additionalLang">:: &nbsp;';

@@ -90,7 +90,7 @@
                                {
                                        if ($userlang == $abbr_lang_name) 
                                        {
-                                           $out .= '<a 
href="'.$abbr_lang_name.'/'.($page ? $page : 
"index").'.html">'.$full_lang_name.'</a>&nbsp; :: &nbsp;';
+                                           $out .= '<a 
href="'.$abbr_lang_name.($page ? $page : 
"index").'.html">'.$full_lang_name.'</a>&nbsp; :: &nbsp;';
                                        }
                                }
                        }


Reply via email to