From ed932754b5e8f079c836a2258793f82373e72e8a Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 27 Jan 2002 02:19:45 +0000 Subject: [PATCH] Remove hard-coded .php git-svn-id: file:///svn/phpbb/trunk@1963 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/index.php | 2 +- phpBB/viewforum.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } }