Jelajahi Sumber

Merge pull request #1316 from Oldiesmann/release-2.1

! Typos cause weird things to happen
Michael Eshom 11 tahun lalu
induk
melakukan
bae217ffa2
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Sources/Calendar.php

+ 1 - 1
Sources/Calendar.php

@@ -243,7 +243,7 @@ function CalendarPost()
 			isAllowedTo('calendar_edit_' . (!empty($user_info['id']) && getEventPoster($_REQUEST['eventid']) == $user_info['id'] ? 'own' : 'any'));
 
 		// New - and directing?
-		if ($_REQUEST['eventid'] == -1 && (isset($_POST['link_to_board']) || empty($modSettings['allow_cal_unlinked'])))
+		if ($_REQUEST['eventid'] == -1 && (isset($_POST['link_to_board']) || empty($modSettings['cal_allow_unlinked'])))
 		{
 			$_REQUEST['calendar'] = 1;
 			require_once($sourcedir . '/Post.php');