Found error in function make_keywords

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

Found error in function make_keywords

Postby wolkenkrieger » Fri Jul 17, 2009 11:27 am

Hi, i found an error in the function make_keywords() ... (functions.php)

FIND

Code: Select all
if (file_exists("{$user->lang_path}/search_ignore_words.$phpEx")){
               // include the file containing ignore words
               include("{$user->lang_path}/search_ignore_words.$phpEx");
            }


REPLACE WITH

Code: Select all
if (file_exists("{$user->lang_path}{$user->lang_name}/search_ignore_words.$phpEx")){
               // include the file containing ignore words
               include("{$user->lang_path}{$user->lang_name}/search_ignore_words.$phpEx");
            }


$user->lang_path only contains the dir-name of the global language path => "/./../language/"
$user->lang_name contains the path of the language wich the user has setted up => "de/" or "en/" and so on

That's the reason why the search_ignore_words.php has no effect by setting um the keywords :) file_exists will ever return false, because the path is wrong :)
wolkenkrieger
PR0
PR0
 
Posts: 77
Joined: Sat Nov 03, 2007 4:49 pm

Advertisement

Re: Found error in function make_keywords

Postby dcz » Sat Jul 18, 2009 9:16 am

Thanks for reporting, this was kind of a stupid one ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests