Skip to content

Commit

Permalink
refs #1645: fix the real reason
Browse files Browse the repository at this point in the history
 - Rollback the previous commit as XHTML requires ID and name to be
   different.
 - Fix wrong use of the settings API in the trackback handler.
  • Loading branch information
achimnol committed Feb 19, 2014
1 parent 51fb2bf commit 8c81278
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion interface/blog/trackback/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
)
);
require ROOT . '/library/preprocessor.php';
if(!Setting::getBlogSetting('acceptTrackbacks',1)) {
if(!Setting::getBlogSettingGlobal('acceptTrackbacks',1)) {
Respond::PrintResult(array('error' => 1, 'message' => 'The entry does not accept trackback'));
exit;
}
Expand Down
10 changes: 5 additions & 5 deletions interface/owner/setting/blog/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ function setPolicy() {

if(document.getElementById('useiPhoneUI').checked) newUseiPhoneUI = 1;
else newUseiPhoneUI = 0;
if(document.getElementById('acceptComments').checked) acceptComments = 0;
if(document.getElementById('acceptComment').checked) acceptComments = 0;
else acceptComments = 1;
if(document.getElementById('acceptTrackbacks').checked) acceptTrackbacks = 0;
if(document.getElementById('acceptTrackback').checked) acceptTrackbacks = 0;
else acceptTrackbacks = 1;

var request2 = new HTTPRequest("POST", "<?php echo $blogURL;?>/owner/setting/blog/visibility/");
Expand Down Expand Up @@ -805,10 +805,10 @@ function setLocale() {
<dl id="accept-response-line" class="line">
<dt><label for="acceptResponses"><?php echo _t('댓글 및 글걸기 차단');?></label></dt>
<dd>
<input id="acceptComments" type="checkbox" name="acceptComments" <?php echo $acceptComments;?> />
<label for="acceptComments"><?php echo _t('블로그의 모든 글에 댓글및 방명록을 달 수 없도록 합니다.'); ?></label>
<input id="acceptComment" type="checkbox" name="acceptComments" <?php echo $acceptComments;?> />
<label for="acceptComment"><?php echo _t('블로그의 모든 글에 댓글및 방명록을 달 수 없도록 합니다.'); ?></label>
<br />
<input id="acceptTrackbacks" type="checkbox" name="acceptTrackbacks" <?php echo $acceptTrackbacks;?> />
<input id="acceptTrackback" type="checkbox" name="acceptTrackbacks" <?php echo $acceptTrackbacks;?> />
<label for="acceptTrackbacks"><?php echo _t('블로그의 모든 글에 트랙백 및 핑백을 보낼 수 없도록 합니다.') ?></label>
</dd>
</dl>
Expand Down

0 comments on commit 8c81278

Please sign in to comment.