1.3.14 - Cannot EDIT record

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Philippe,

which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Hyperman
Posts: 2
Joined: Wed Sep 01, 2004 5:46 pm

Post by Hyperman »

Oups... sorry.

phpMyFAQ Version : phpMyFAQ 1.4.1
Server Software : Apache/1.3.29 (Debian GNU/Linux) PHP/4.3.4
PHP Version : PHP 4.3.4
PHP Memory Limit : 8M
Register Globals : off
Safe Mode : off
MySQL Client Version : MySQL 3.23.56
MySQL Server Version : MySQL 4.0.18-log


By the way, I also added some "strtolower" at lines 83 and 84 in the index.php
and lines 61 and 62 of admin/index.php to have something appear in the browser.
The template phpMyFAQ tried to load was "lang/language_En.php" (uppercase E)

A simple patch to show what I mean could be :

Code: Select all

- require_once("lang/language_".substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2).".php")) {
-         $LANGCODE = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2);
+ require_once("lang/language_".strtolower(substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2)).".php")) {
+         $LANGCODE = strtolower(substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2));


Hope this help,
Philippe
Post Reply