Revision 1186
Added by Dietmar almost 15 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.1 ------------------------------------- |
14 | 14 |
25-Nov-2009 Dietmar Woellbrink (Luisehahne) |
15 |
! more bug fixes language file SK.php |
|
16 |
25-Nov-2009 Dietmar Woellbrink (Luisehahne) |
|
17 |
! Many hosts disable error_log() in various and sundry ways. |
|
18 |
In WB we do something like this to avoid triggering warnings and errors. |
|
19 |
Even this is sometimes not sufficient to avoid problems with some hosts, but accommodates most. |
|
20 |
25-Nov-2009 Dietmar Woellbrink (Luisehahne) |
|
15 | 21 |
! fix show_menu2 include.php, page crashes, if php error_log is disabled |
16 | 22 |
25-Nov-2009 Dietmar Woellbrink (Luisehahne) |
17 | 23 |
! fixes language files HU.php and SK.php |
branches/2.8.x/wb/languages/SK.php | ||
---|---|---|
19 | 19 |
|
20 | 20 |
You should have received a copy of the GNU General Public License |
21 | 21 |
along with Website Baker; if not, write to the Free Software |
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 | 23 |
|
24 | 24 |
*/ |
25 | 25 |
|
26 | 26 |
// use languageedit-module to modify this file |
27 | 27 |
|
28 |
// Define that this file is loaded
|
|
29 |
if(!defined('LANGUAGE_LOADED')) {
|
|
30 |
define('LANGUAGE_LOADED', true);
|
|
31 |
}
|
|
28 |
// Define that this file is loaded |
|
29 |
if(!defined('LANGUAGE_LOADED')) { |
|
30 |
define('LANGUAGE_LOADED', true);
|
|
31 |
} |
|
32 | 32 |
|
33 | 33 |
// Set the language information |
34 | 34 |
$language_code = 'SK'; |
... | ... | |
456 | 456 |
|
457 | 457 |
$MESSAGE['SIGNUP']['NO_EMAIL'] = 'MusÃte zadať e-mailovou adresu'; |
458 | 458 |
$MESSAGE['SIGNUP2']['SUBJECT_LOGIN_INFO'] = 'Vaše prihlasovacie údaje...'; |
459 |
$MESSAGE['SIGNUP2']['BODY_LOGIN_INFO'] = '<<< EOT
|
|
460 |
Vážený {LOGIN_DISPLAY_NAME},
|
|
459 |
$MESSAGE['SIGNUP2']['BODY_LOGIN_INFO'] = <<< EOT
|
|
460 |
Vážený {LOGIN_DISPLAY_NAME}, |
|
461 | 461 |
|
462 |
Pre Vaše prihlásenie do '{LOGIN_WEBSITE_TITLE}' použite:
|
|
462 |
Pre Vaše prihlásenie do '{LOGIN_WEBSITE_TITLE}' použite: |
|
463 | 463 |
Meno: {LOGIN_NAME} |
464 | 464 |
Heslo: {LOGIN_PASSWORD} |
465 | 465 |
|
... | ... | |
467 | 467 |
To znamená, že vaše staré heslo už nebude fungovať. |
468 | 468 |
|
469 | 469 |
Ak ste túto správu dostali omylom, prosÃm, ihneď ho zmažte. |
470 |
EOT';
|
|
470 |
EOT;
|
|
471 | 471 |
|
472 | 472 |
$MESSAGE['FORGOT_PASS']['NO_DATA'] = 'Zadajte svoju e-mailovou adresu:'; |
473 | 473 |
$MESSAGE['FORGOT_PASS']['EMAIL_NOT_FOUND'] = 'Zadaná e-mailová adresa alebola nájdená'; |
... | ... | |
599 | 599 |
$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.'; |
600 | 600 |
$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.'; |
601 | 601 |
|
602 |
?> |
|
602 |
?> |
branches/2.8.x/wb/modules/show_menu2/include.php | ||
---|---|---|
270 | 270 |
$rgTests[$n] = $this->ifTest($rgMatches[1], $rgMatches[2], $rgMatches[3]); |
271 | 271 |
} |
272 | 272 |
else { |
273 |
@error_log("show_menu2 error: conditional expression is invalid!"); |
|
273 |
@error_logs("show_menu2 error: conditional expression is invalid!");
|
|
274 | 274 |
$rgTests[$n] = false; |
275 | 275 |
} |
276 | 276 |
} |
... | ... | |
402 | 402 |
} |
403 | 403 |
}; |
404 | 404 |
|
405 |
function error_logs($error_str) |
|
406 |
{ |
|
407 |
$log_error = true; |
|
408 |
if ( ! function_exists('error_log') ) |
|
409 |
$log_error = false; |
|
410 |
|
|
411 |
$log_file = @ini_get('error_log'); |
|
412 |
if ( !empty($log_file) && ('syslog' != $log_file) && !@is_writable($log_file) ) |
|
413 |
$log_error = false; |
|
414 |
|
|
415 |
if ( $log_error ) |
|
416 |
@error_log($error_str, 0); |
|
417 |
} |
|
418 |
|
|
405 | 419 |
function show_menu2( |
406 | 420 |
$aMenu = 0, |
407 | 421 |
$aStart = SM2_ROOT, |
... | ... | |
429 | 443 |
else { |
430 | 444 |
$flags = SM2_TRIM; |
431 | 445 |
$aOptions = array(); |
432 |
@error_log('show_menu2 error: $aOptions is invalid. No flags supplied!'); |
|
446 |
@error_logs('show_menu2 error: $aOptions is invalid. No flags supplied!');
|
|
433 | 447 |
} |
434 | 448 |
|
435 | 449 |
// ensure we have our group 1 flag, we don't check for the "exactly 1" part, but |
436 | 450 |
// we do ensure that they provide at least one. |
437 | 451 |
if (0 == ($flags & _SM2_GROUP_1)) { |
438 |
@error_log('show_menu2 error: $aOptions is invalid. No flags from group 1 supplied!'); |
|
452 |
@error_logs('show_menu2 error: $aOptions is invalid. No flags from group 1 supplied!');
|
|
439 | 453 |
$flags |= SM2_TRIM; // default to TRIM |
440 | 454 |
} |
441 | 455 |
|
Also available in: Unified diff
more bug fixes language file SK.php
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.