aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-17 21:56:55 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-17 21:56:55 -0700
commitabe362bdd442739580d065b0b66300522cfab316 (patch)
tree8fc02d02bc8ad41f2138d39a86add12e4f90fa30
parentea331b043c306d4250365a876c9e9ee857d4bdeb (diff)
downloadvolse-hubzilla-abe362bdd442739580d065b0b66300522cfab316.tar.gz
volse-hubzilla-abe362bdd442739580d065b0b66300522cfab316.tar.bz2
volse-hubzilla-abe362bdd442739580d065b0b66300522cfab316.zip
issues encountered whilst testing import_items module using yearly dump files
-rw-r--r--mod/import_items.php3
-rwxr-xr-xview/tpl/item_import.tpl2
2 files changed, 2 insertions, 3 deletions
diff --git a/mod/import_items.php b/mod/import_items.php
index fe505ff87..1e54c0deb 100644
--- a/mod/import_items.php
+++ b/mod/import_items.php
@@ -85,10 +85,9 @@ function import_items_post(&$a) {
$channel = $a->get_channel();
-
$saved_notification_flags = notifications_off($channel['channel_id']);
- if($import_posts && array_key_exists('item',$data) && $data['item']) {
+ if(array_key_exists('item',$data) && $data['item']) {
foreach($data['item'] as $i) {
$item = get_item_elements($i);
diff --git a/view/tpl/item_import.tpl b/view/tpl/item_import.tpl
index 416defcce..65de7fcaf 100755
--- a/view/tpl/item_import.tpl
+++ b/view/tpl/item_import.tpl
@@ -1,6 +1,6 @@
<h2>{{$title}}</h2>
-<form action="import" method="post" enctype="multipart/form-data" id="import-channel-form">
+<form action="import_items" method="post" enctype="multipart/form-data" id="import-channel-form">
<div id="import-desc" class="descriptive-paragraph">{{$desc}}</div>