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
Switch to threaded view of this topic Create a new topic Submit Reply
BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants [message #187772] Fri, 20 September 2019 21:20 Go to next message
BugLaden is currently offline  BugLaden   Canada
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma: 0
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

Re: BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants [message #187773 is a reply to message #187772] Sat, 21 September 2019 08:17 Go to previous message
naudefj is currently offline  naudefj   United States
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Patch applied. Thank you again!

PS: We should probably start looking at a new release, as there's a lot of improvements in the repository.
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Dec 11 21:06:08 GMT 2024

Total time taken to generate the page: 0.04898 seconds