diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2009-08-10 12:12:45 +0000 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2009-08-10 12:12:45 +0000 |
| commit | e5fadfd42bc956a149e04370631b054213866544 (patch) | |
| tree | 78b3f4ccaa2963bef82a2682215a49720020ee25 /phpBB/install/install_update.php | |
| parent | 10cdf3506cbd7c8cfb9e7c5286c1bf18f9c94c3a (diff) | |
| download | forums-e5fadfd42bc956a149e04370631b054213866544.tar forums-e5fadfd42bc956a149e04370631b054213866544.tar.gz forums-e5fadfd42bc956a149e04370631b054213866544.tar.bz2 forums-e5fadfd42bc956a149e04370631b054213866544.tar.xz forums-e5fadfd42bc956a149e04370631b054213866544.zip | |
Bugs #15809, #49215 - Allow updater to work correctly with PHP filename extensions other than .php.
Related revisions: r9935, r9936
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9948 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/install_update.php')
| -rw-r--r-- | phpBB/install/install_update.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/install/install_update.php b/phpBB/install/install_update.php index a809afd4c7..ad72652e97 100644 --- a/phpBB/install/install_update.php +++ b/phpBB/install/install_update.php @@ -203,7 +203,7 @@ class install_update extends module } // What about the language file? Got it updated? - if (in_array('language/en/install.php', $this->update_info['files'])) + if (in_array('language/en/install.' . $phpEx, $this->update_info['files'])) { $lang = array(); include($this->new_location . 'language/en/install.' . $phpEx); @@ -1577,6 +1577,12 @@ class install_update extends module if ($info !== false) { + // We assume that all file extensions have been renamed to .$phpEx, + // if someone is using a non .php file extension for php files. + // However, in $update_info['files'] we use hardcoded .php. + // We therefore replace .php with .$phpEx. + $info['files'] = preg_replace('/\.php$/i', ".$phpEx", $info['files']); + // Adjust the update info file to hold some specific style-related information $info['custom'] = array(); /* |
