diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-07-14 20:11:48 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-07-14 20:11:48 +0200 |
commit | 38082c41e371be417e26f375d6f9f207d74cfdde (patch) | |
tree | fbc54a916f6ef14c77233171292f3934a29f8357 | |
parent | 927cc2ebad149605eed6edb551fa3ea0601df2cc (diff) | |
parent | 4cf666f0bcd99c09fd98d8ef17b2dea9fbea0fe7 (diff) | |
download | forums-38082c41e371be417e26f375d6f9f207d74cfdde.tar forums-38082c41e371be417e26f375d6f9f207d74cfdde.tar.gz forums-38082c41e371be417e26f375d6f9f207d74cfdde.tar.bz2 forums-38082c41e371be417e26f375d6f9f207d74cfdde.tar.xz forums-38082c41e371be417e26f375d6f9f207d74cfdde.zip |
Merge pull request #4347 from Senky/ticket/14631
[ticket/14631] Load truncate_string() if needed
-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, |