diff --git a/phpBB/admin/index.php b/phpBB/admin/index.php index deb18b2781..e2538f2fc1 100644 --- a/phpBB/admin/index.php +++ b/phpBB/admin/index.php @@ -56,7 +56,7 @@ if( $HTTP_GET_VARS['pane'] == 'left' ) $setmodules = 1; while( $file = @readdir($dir) ) { - if( preg_match("/^admin_.*?\.php$/", $file) ) + if( preg_match("/^admin_.*?\." . $phpEx . "$/", $file) ) { include($file); } diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 99fbd0845b..72d6cfd516 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -169,7 +169,7 @@ if( $is_auth['auth_mod'] && $board_config['prune_enable'] ) { if( $forum_row['prune_next'] < time() && $forum_row['prune_enable'] ) { - include($phpbb_root_path . 'includes/prune.php'); + include($phpbb_root_path . 'includes/prune.$phpEx'); auto_prune($forum_id); } }