diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index c762718e33..6827a0c505 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -191,6 +191,10 @@ p a {
[Fix] Updater is no longer listing missing language entries and styles if these had been removed (Bug #12655)
[Fix] Correct approval of posts in global announcements (Bug #12699)
[Sec] Do not allow setup spiders/robots to post, even if permissions are given. We see no reason why this should be possible. (Thanks to Frank Rizzo for convincing us regarding this)
+
[Sec] Do not display the last active column within the memberlist if u_viewonline permission is not given (Bug #12797)
+
[Fix] Display custom profile field "date" based on users language (Bug #12787)
+
[Fix] Allow adding of help language files within subdirectories (Bug #12783)
+
[Fix] Correctly apply smileys on posting having # within their emotion code
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php
index 47d3ae03a9..7c5e39c3a7 100644
--- a/phpBB/includes/functions_profile_fields.php
+++ b/phpBB/includes/functions_profile_fields.php
@@ -469,8 +469,8 @@ class custom_profile
// case 'datetime':
case 'date':
$date = explode('-', $value);
- $month = (isset($date[0])) ? (int) $date[0] : 0;
- $day = (isset($date[1])) ? (int) $date[1] : 0;
+ $day = (isset($date[0])) ? (int) $date[0] : 0;
+ $month = (isset($date[1])) ? (int) $date[1] : 0;
$year = (isset($date[2])) ? (int) $date[2] : 0;
if (!$day && !$month && !$year)
@@ -479,7 +479,8 @@ class custom_profile
}
else if ($day && $month && $year)
{
- return sprintf('%4d-%02d-%02d', $year, $month, $day);
+ global $user;
+ return $user->format_date(mktime(0, 0, 0, $month, $day, $year), $user->lang['DATE_FORMAT'], true);
}
return $value;
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 1a70a7fd80..649708aff3 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -1229,7 +1229,7 @@ class parse_message extends bbcode_firstpass
while ($row = $db->sql_fetchrow($result))
{
// (assertion)
- $match[] = '#(?<=^|[\n .])' . preg_quote($row['code'], '#') . '(?![^<>]*>)#';
+ $match[] = '(?<=^|[\n .])' . preg_quote($row['code'], '#') . '(?![^<>]*>)';
$replace[] = '';
}
$db->sql_freeresult($result);
@@ -1239,7 +1239,7 @@ class parse_message extends bbcode_firstpass
{
if ($max_smilies)
{
- $num_matches = preg_match_all('#' . str_replace('#', '', implode('|', $match)) . '#', $this->message, $matches);
+ $num_matches = preg_match_all('#' . implode('|', $match) . '#', $this->message, $matches);
unset($matches);
if ($num_matches !== false && $num_matches > $max_smilies)
@@ -1249,6 +1249,9 @@ class parse_message extends bbcode_firstpass
}
}
+ // Make sure the delimiter # is added in front and at the end of every element within $match
+ $match = explode(chr(0), '#' . implode('#' . chr(0) . '#', $match) . '#');
+
$this->message = trim(preg_replace($match, $replace, $this->message));
}
}
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index e97f3ac8e6..35edf92749 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -1627,9 +1627,18 @@ class user extends session
// - add appropriate variables here, name them as they are used within the language file...
if (!$use_db)
{
- if ((include($this->lang_path . (($use_help) ? 'help_' : '') . "$lang_file.$phpEx")) === false)
+ if ($use_help && strpos($lang_file, '/') !== false)
{
- trigger_error("Language file {$this->lang_path}" . (($use_help) ? 'help_' : '') . "$lang_file.$phpEx couldn't be opened.", E_USER_ERROR);
+ $language_filename = $this->lang_path . substr($lang_file, 0, stripos($lang_file, '/') + 1) . 'help_' . substr($lang_file, stripos($lang_file, '/') + 1) . '.' . $phpEx;
+ }
+ else
+ {
+ $language_filename = $this->lang_path . (($use_help) ? 'help_' : '') . $lang_file . '.' . $phpEx;
+ }
+
+ if ((include($language_filename)) === false)
+ {
+ trigger_error("Language file $language_filename couldn't be opened.", E_USER_ERROR);
}
}
else if ($use_db)
diff --git a/phpBB/language/en/install.php b/phpBB/language/en/install.php
index c81b5c9f7b..9bfb8063f6 100755
--- a/phpBB/language/en/install.php
+++ b/phpBB/language/en/install.php
@@ -485,16 +485,16 @@ $lang = array_merge($lang, array(
Release announcement
-
Please read the release announcement for the latest version before you continue your update process, it may contain useful information. It also contains full download links as well as the change log.
+
Please read the release announcement for the latest version before you continue your update process, it may contain useful information. It also contains full download links as well as the change log.
-
How to update your installation
+
How to update your installation with the Automatic Update Package
-
The recommended way of updating your installation only takes the following steps:
+
The recommended way of updating your installation listed here is only valid for the automatic update package. You are also able to update your installation using the methods listed within the INSTALL.html document. The steps for updating phpBB3 automatically are:
- You will then be guided through the update process. You will be notified after the update is complete.
+ You will then be guided through the update process. You will be notified once the update is complete.