Skip to content

Commit

Permalink
refs #1703 : modified - trackback delete routine
Browse files Browse the repository at this point in the history
 -
  • Loading branch information
inureyes committed Nov 10, 2014
1 parent d4221ab commit e65a770
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion framework/id/textcube/config.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
$service['reader'] = true;
$service['flashclipboardpoter'] = true;
$service['allowBlogVisibilitySetting'] = true;
$service['disableEolinSuggestion'] = false;
$service['disableEolinSuggestion'] = true;
$service['interface'] = 'detail'; // 'simple' or 'detail'. Default is 'detail'
$service['pagecache'] = true;
$service['codecache'] = false;
Expand Down
7 changes: 4 additions & 3 deletions interface/owner/communication/trackback/delete/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array(
'POST' => array(
'targets' => array('list', 'default' => '')
'targets' => array('list', 'default' => '', 'mandatory' => false),
'targetIPs' => array('string', 'default' => '', 'mandatory' => false)
)
);
require ROOT . '/library/preprocessor.php';
Expand All @@ -13,9 +14,9 @@
requireStrictRoute();

if(isset($suri['id'])) {

$isAjaxRequest = checkAjaxRequest();

if (trashTrackback($blogid, $suri['id']) !== false)
$isAjaxRequest ? Respond::ResultPage(0) : header("Location: ".$_SERVER['HTTP_REFERER']);
else
Expand Down

0 comments on commit e65a770

Please sign in to comment.