#2320 - Composr 10b4: Missing require_code statements

  • By
  • Added
  • 8 views
Identifier #2320
Issue type Minor issue (breaks specific functionality)
Title Composr 10b4: Missing require_code statements
Status Completed
Handling member Chris Graham
Addon core
Description Composr 10b4 has a few missing require_code statements. In regular website functionality, these are usually not necessary. However for scripts that use minimal Composr interface (such as bots as well as custom scripts that load just the core of Composr), without these require code statements, many errors are triggered and functionality is abnormal.

*sources/globals3.php needs a "require_code('config')" inside the get_ip_address function.

*sources/config.php needs a "require_code('database')" within the function around line 34.

*sources/config.php needs a "require_code('caches')" within the function near line 162.
Steps to reproduce

Additional information Related to #2316
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated