[Bug] in Index.php

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

[Bug] in Index.php

Post by AndrewB »

In Index.php there is a missing line of code. It should look like this:

/* found a record ID? */
if (isset($_REQUEST["id"]) && checkIntVar($_REQUEST["id"]) == TRUE) {
$id = $_REQUEST["id"];
$lang = $_REQUEST["lang"];
$title = " - ".stripslashes(getThema($id, $lang));
}
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

My above post is NOT correct. It needs to use the language of the faq entry - not the language of the language file being used.

so it should be

$lang = $_REQUEST["artlang"];

or maybe

$lang = $_GET["artlang"]

?

not sure of the difference between get and request! I used request and that seems to work for me.
Thorsten
Posts: 15743
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Andrew,

this is a known bug in 1.4.0 and its fixed in 1.4.1. This version will be released in the next days.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply