diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-06-06 20:14:54 +0200 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2016-06-07 19:39:15 +0200 |
commit | 4cf666f0bcd99c09fd98d8ef17b2dea9fbea0fe7 (patch) | |
tree | b945d3ab89fdd0260604e88fe7294ec182cd2483 /phpBB/phpbb | |
parent | 0a512b2695342095ecb9745cf1c445c45f3326be (diff) | |
download | forums-4cf666f0bcd99c09fd98d8ef17b2dea9fbea0fe7.tar forums-4cf666f0bcd99c09fd98d8ef17b2dea9fbea0fe7.tar.gz forums-4cf666f0bcd99c09fd98d8ef17b2dea9fbea0fe7.tar.bz2 forums-4cf666f0bcd99c09fd98d8ef17b2dea9fbea0fe7.tar.xz forums-4cf666f0bcd99c09fd98d8ef17b2dea9fbea0fe7.zip |
[ticket/14631] Load truncate_string() if needed
PHPBB3-14631
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/content_visibility.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/phpbb/content_visibility.php b/phpBB/phpbb/content_visibility.php index 0ba0489cb7..147b8ebbff 100644 --- a/phpBB/phpbb/content_visibility.php +++ b/phpBB/phpbb/content_visibility.php @@ -417,6 +417,11 @@ class content_visibility return array(); } + if (!function_exists('truncate_string')) + { + include($this->phpbb_root_path . 'includes/functions_content.' . $this->php_ext); + } + $data = array( 'post_visibility' => (int) $visibility, 'post_delete_user' => (int) $user_id, @@ -628,6 +633,11 @@ class content_visibility } } + if (!function_exists('truncate_string')) + { + include($this->phpbb_root_path . 'includes/functions_content.' . $this->php_ext); + } + // Note, we do not set a reason for the posts, just for the topic $data = array( 'topic_visibility' => (int) $visibility, |