Skip to content

Commit

Permalink
Remove inclusion of core.php in timeline_inc.php
Browse files Browse the repository at this point in the history
By definition an include file is part of a main script, which will
always include core.php, so it's not necessary to reference it again
in the include.

This actually caused an error on a user's system (PHP 8.2 on IIS). The
problem could not be reproduced, but an easy fix is to remove the
useless require_once.

Fixes #33906
  • Loading branch information
dregad committed Mar 2, 2024
1 parent 0e4e6e3 commit bff76ed
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/timeline_inc.php
Expand Up @@ -14,7 +14,6 @@
# You should have received a copy of the GNU General Public License
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>.

require_once( 'core.php' );
require_api( 'timeline_api.php' );

define( 'MAX_EVENTS', 50 );
Expand Down

0 comments on commit bff76ed

Please sign in to comment.