|
@@ -1751,7 +1751,7 @@ function sendNotifications($topics, $type, $exclude = array(), $members_only = a
|
|
|
*/
|
|
|
function createPost(&$msgOptions, &$topicOptions, &$posterOptions)
|
|
|
{
|
|
|
- global $user_info, $txt, $modSettings, $smcFunc, $context;
|
|
|
+ global $user_info, $txt, $modSettings, $smcFunc, $context, $sourcedir;
|
|
|
|
|
|
|
|
|
$msgOptions['icon'] = empty($msgOptions['icon']) ? 'xx' : $msgOptions['icon'];
|
|
@@ -2400,7 +2400,7 @@ function attachmentChecks($attachID)
|
|
|
*/
|
|
|
function modifyPost(&$msgOptions, &$topicOptions, &$posterOptions)
|
|
|
{
|
|
|
- global $user_info, $modSettings, $smcFunc, $context;
|
|
|
+ global $user_info, $modSettings, $smcFunc, $context, $sourcedir;
|
|
|
|
|
|
$topicOptions['poll'] = isset($topicOptions['poll']) ? (int) $topicOptions['poll'] : null;
|
|
|
$topicOptions['lock_mode'] = isset($topicOptions['lock_mode']) ? $topicOptions['lock_mode'] : null;
|