File: includes/functions_content.php
Unmodified
Added
Modified
Removed
Line 320 | Line 320 |
---|
* Generates a text with approx. the specified length which contains the specified words and their context * * @param string $text The full text from which context shall be extracted
|
* Generates a text with approx. the specified length which contains the specified words and their context * * @param string $text The full text from which context shall be extracted
|
* @param string $words An array of words which should be contained in the result, has to be a valid part of a PCRE pattern (escape with preg_quote!)
| * @param array $words An array of words which should be contained in the result, has to be a valid part of a PCRE pattern (escape with preg_quote!)
|
* @param int $length The desired length of the resulting text, however the result might be shorter or longer than this value * * @return string Context of the specified words separated by "..."
| * @param int $length The desired length of the resulting text, however the result might be shorter or longer than this value * * @return string Context of the specified words separated by "..."
|
Line 1088 | Line 1088 |
---|
} else {
|
} else {
|
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_path_helper->get_web_root_path();
| $root_path = $phpbb_path_helper->get_web_root_path();
|
/** * Event to override the root_path for smilies
| /** * Event to override the root_path for smilies
|