FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants [message #187772] Fri, 20 September 2019 21:20 Go to previous message
BugLaden is currently offline  BugLaden   Canada
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma:
Senior Member
When requiring GLOBALS.php in external code to implement the API, this error is thrown:
Notice (8): Undefined variable: INCLUDE [ROOT/FUDforum/include/GLOBALS.php, line 117]

Line 12 in GLOBALS.php is:
$GLOBALS['INCLUDE']             = '/home2/bugladen/cake/tobacconerd/FUDforum/include/';

This seems to have replaced all older variables called $INCLUDE.

However, some instances were missed:

./include/GLOBALS.php   require($INCLUDE .'core.inc');
./include/glob.inc:     $stripped_globals = str_replace('require($INCLUDE .\'core.inc\');', '', $globals);
./src/post.php.t:                               $data = file_get_contents($INCLUDE .'theme/'. $usr->theme_name .'/usercp.inc');


Patch attached.


-=BugLaden

[Updated on: Sat, 21 September 2019 03:09]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Previous Topic: Make the ยป in the Pager jump to the very end ?
Next Topic: FIX: FUDAPI niggles
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 00:55:37 GMT 2024

Total time taken to generate the page: 0.40308 seconds