Преглед на файлове

Use relative URLs for attachment handling

tags/3.1.0
Mike Koch преди 2 години
родител
ревизия
9a5738eb1c
променени са 6 файла, в които са добавени 8 реда и са изтрити 9 реда
  1. 2
    3
      admin/admin_ticket.php
  2. 1
    1
      admin/edit_post.php
  3. 2
    2
      admin/manage_knowledgebase.php
  4. 1
    1
      admin/new_ticket.php
  5. 1
    1
      index.php
  6. 1
    1
      ticket.php

+ 2
- 3
admin/admin_ticket.php Целия файл

@@ -1167,7 +1167,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<?php build_dropzone_markup(true, 'notesFiledrop'); ?>
</div>
</div>
<?php display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/ticket/upload-attachment.php', 'notesFiledrop'); ?>
<?php display_dropzone_field(HESK_PATH . 'internal-api/ticket/upload-attachment.php', 'notesFiledrop'); ?>
<div class="text-right">
<i><?php echo $hesklang['nhid']; ?></i>&nbsp;
<div class="btn-group">
@@ -1965,7 +1965,6 @@ function hesk_printReplyForm()

?></textarea>
<div class="help-block with-errors" id="message-help-block"></div></span>
<p id="lang_ticket_message_contents_exist" style="display: none"><?php echo $hesklang['ticket_message_contents_exist']; ?></p>
</div>
</div>
<?php
@@ -1980,7 +1979,7 @@ function hesk_printReplyForm()
</div>
</div>
<?php
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/ticket/upload-attachment.php');
display_dropzone_field(HESK_PATH . 'internal-api/ticket/upload-attachment.php');
}
?>
<div class="form-group">

+ 1
- 1
admin/edit_post.php Целия файл

@@ -608,7 +608,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</div>
</div>
<?php
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/ticket/upload-attachment.php',
display_dropzone_field(HESK_PATH . 'internal-api/ticket/upload-attachment.php',
'filedrop',
$hesk_settings['attachments']['max_number'] - $number_of_attachments);
endif; ?>

+ 2
- 2
admin/manage_knowledgebase.php Целия файл

@@ -459,7 +459,7 @@ if (!isset($_SESSION['hide']['new_article']))
<?php build_dropzone_markup(true); ?>
</div>
<?php
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/admin/knowledgebase/upload-attachment.php');
display_dropzone_field(HESK_PATH . 'internal-api/admin/knowledgebase/upload-attachment.php');
endif; // End attachments

?>
@@ -1517,7 +1517,7 @@ function edit_article()

<?php
build_dropzone_markup(true);
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/admin/knowledgebase/upload-attachment.php');
display_dropzone_field(HESK_PATH . 'internal-api/admin/knowledgebase/upload-attachment.php');
?>
</div>
<?php endif; //End attachments ?>

+ 1
- 1
admin/new_ticket.php Целия файл

@@ -879,7 +879,7 @@ $show_quick_help = $show['show'];
</div>
</div>
<?php
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/ticket/upload-attachment.php');
display_dropzone_field(HESK_PATH . 'internal-api/ticket/upload-attachment.php');
}

if (!isset($_SESSION['as_notify'])) {

+ 1
- 1
index.php Целия файл

@@ -983,7 +983,7 @@ function print_add_ticket()
</div>
</div>
<?php
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/ticket/upload-attachment.php');
display_dropzone_field(HESK_PATH . 'internal-api/ticket/upload-attachment.php');
}

if ($hesk_settings['question_use'] || $hesk_settings['secimg_use'])

+ 1
- 1
ticket.php Целия файл

@@ -656,7 +656,7 @@ function hesk_printCustomerReplyForm($reopen = 0)
</div>
</div>
<?php
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/ticket/upload-attachment.php');
display_dropzone_field(HESK_PATH . 'internal-api/ticket/upload-attachment.php');
}
?>
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>"/>

Loading…
Отказ
Запис