Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1185)
+++ branches/2.8.x/CHANGELOG	(revision 1186)
@@ -12,6 +12,12 @@
 
 ------------------------------------- 2.8.1 -------------------------------------
 25-Nov-2009 Dietmar Woellbrink (Luisehahne)
+!	more bug fixes language file SK.php
+25-Nov-2009 Dietmar Woellbrink (Luisehahne)
+!	Many hosts disable error_log() in various and sundry ways. 
+	In WB we do something like this to avoid triggering warnings and errors. 
+	Even this is sometimes not sufficient to avoid problems with some hosts, but accommodates most.
+25-Nov-2009 Dietmar Woellbrink (Luisehahne)
 !	fix show_menu2 include.php, page crashes, if php error_log is disabled
 25-Nov-2009 Dietmar Woellbrink (Luisehahne)
 !	fixes language files HU.php and SK.php
Index: branches/2.8.x/wb/languages/SK.php
===================================================================
--- branches/2.8.x/wb/languages/SK.php	(revision 1185)
+++ branches/2.8.x/wb/languages/SK.php	(revision 1186)
@@ -19,16 +19,16 @@
 
 You should have received a copy of the GNU General Public License 
 along with Website Baker; if not, write to the Free Software 
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 */ 
 
 // use languageedit-module to modify this file 
 
-// Define that this file is loaded 
-if(!defined('LANGUAGE_LOADED')) { 
-        define('LANGUAGE_LOADED', true); 
-} 
+// Define that this file is loaded
+if(!defined('LANGUAGE_LOADED')) {
+define('LANGUAGE_LOADED', true);
+}
 
 // Set the language information 
 $language_code = 'SK'; 
@@ -456,10 +456,10 @@
 
 $MESSAGE['SIGNUP']['NO_EMAIL'] = 'MusÃ­te zada&#357; e-mailovou adresu'; 
 $MESSAGE['SIGNUP2']['SUBJECT_LOGIN_INFO'] = 'Va&#353;e prihlasovacie &uacute;daje...'; 
-$MESSAGE['SIGNUP2']['BODY_LOGIN_INFO'] = '<<< EOT 
-V&aacute;&#382;en&yacute;  {LOGIN_DISPLAY_NAME}, 
+$MESSAGE['SIGNUP2']['BODY_LOGIN_INFO'] = <<< EOT
+V&aacute;&#382;en&yacute;  {LOGIN_DISPLAY_NAME},
 
-Pre Va&#353;e prihl&aacute;senie do '{LOGIN_WEBSITE_TITLE}' pou&#382;ite: 
+Pre Va&#353;e prihl&aacute;senie do '{LOGIN_WEBSITE_TITLE}' pou&#382;ite:
 Meno: {LOGIN_NAME} 
 Heslo: {LOGIN_PASSWORD} 
 
@@ -467,7 +467,7 @@
 To znamen&aacute;, &#382;e va&#353;e star&eacute; heslo u&#382; nebude fungova&#357;. 
 
 Ak ste t&uacute;to spr&aacute;vu dostali omylom, prosÃ­m, ihne&#271; ho zma&#382;te. 
-EOT'; 
+EOT;
 
 $MESSAGE['FORGOT_PASS']['NO_DATA'] = 'Zadajte svoju e-mailovou adresu:'; 
 $MESSAGE['FORGOT_PASS']['EMAIL_NOT_FOUND'] = 'Zadan&aacute; e-mailov&aacute; adresa alebola n&aacute;jden&aacute;'; 
@@ -599,4 +599,4 @@
 $MESSAGE['ADDON']['MANUAL_INSTALLATION'] = 'When modules are uploaded via FTP (not recommended), the module installation files <tt>install.php</tt>, <tt>upgrade.php</tt> or <tt>uninstall.php</tt> will not be executed automatically. Those modules may not work correct or do not uninstall properly.<br /><br />You can execute the module files manually for modules uploaded via FTP below.'; 
 $MESSAGE['ADDON']['MANUAL_INSTALLATION_WARNING'] = 'Warning: Existing module database entries will get lost. Only use this option if you experience problems with modules uploaded via FTP.'; 
 
-?>
\ No newline at end of file
+?>
Index: branches/2.8.x/wb/modules/show_menu2/include.php
===================================================================
--- branches/2.8.x/wb/modules/show_menu2/include.php	(revision 1185)
+++ branches/2.8.x/wb/modules/show_menu2/include.php	(revision 1186)
@@ -270,7 +270,7 @@
                 $rgTests[$n] = $this->ifTest($rgMatches[1], $rgMatches[2], $rgMatches[3]);
             }
             else {
-                @error_log("show_menu2 error: conditional expression is invalid!");
+                @error_logs("show_menu2 error: conditional expression is invalid!");
                 $rgTests[$n] = false;
             }
         }
@@ -402,6 +402,20 @@
     }
 };
 
+function error_logs($error_str)
+{
+                $log_error = true;
+                if ( ! function_exists('error_log') )
+                        $log_error = false;
+
+                $log_file = @ini_get('error_log');
+                if ( !empty($log_file) && ('syslog' != $log_file) && !@is_writable($log_file) )
+                        $log_error = false;
+
+                if ( $log_error )
+                        @error_log($error_str, 0);
+}
+
 function show_menu2(
     $aMenu          = 0,
     $aStart         = SM2_ROOT,
@@ -429,13 +443,13 @@
     else {
         $flags = SM2_TRIM;
         $aOptions = array();
-        @error_log('show_menu2 error: $aOptions is invalid. No flags supplied!');
+        @error_logs('show_menu2 error: $aOptions is invalid. No flags supplied!');
     }
     
     // ensure we have our group 1 flag, we don't check for the "exactly 1" part, but
     // we do ensure that they provide at least one.
     if (0 == ($flags & _SM2_GROUP_1)) {
-        @error_log('show_menu2 error: $aOptions is invalid. No flags from group 1 supplied!');
+        @error_logs('show_menu2 error: $aOptions is invalid. No flags from group 1 supplied!');
         $flags |= SM2_TRIM; // default to TRIM
     }
     
