We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

View | Details | Raw Unified | Return to bug 5984
Collapse All | Expand All

(-)a/classes/notification/NotificationSettingsDAO.inc.php (-3 / +13 lines)
 Lines 257-268   class NotificationSettingsDAO extends DAO { Link Here 
257
			return false;
257
			return false;
258
		} else {
258
		} else {
259
			$this->update(
259
			$this->update(
260
				'DELETE FROM notification_settings WHERE setting_name = ? AND setting_value = ? AND user_id = ? AND product = ? AND context = ?',
261
				array(
262
					'mailListUnconfirmed',
263
					$email,
264
					0,
265
					$productName,
266
					(int) $contextId
267
				)
268
			);
269
			$this->update(
260
				'INSERT INTO notification_settings
270
				'INSERT INTO notification_settings
261
					(setting_name, setting_value, user_id, product, context)
271
					(setting_name, setting_value, user_id, product, context)
262
					VALUES
272
					VALUES
263
					(?, ?, ?, ?, ?)',
273
					(?, ?, ?, ?, ?)',
264
				array(
274
				array(
265
					'mailListUncomfirmed',
275
					'mailListUnconfirmed',
266
					$email,
276
					$email,
267
					0,
277
					0,
268
					$productName,
278
					$productName,
 Lines 277-283   class NotificationSettingsDAO extends DAO { Link Here 
277
		import('lib.pkp.classes.security.AccessKeyManager');
287
		import('lib.pkp.classes.security.AccessKeyManager');
278
		$accessKeyManager = new AccessKeyManager();
288
		$accessKeyManager = new AccessKeyManager();
279
289
280
		$password = $accessKeyManager->createKey('MailListContext', $assocId, $assocId, 10000);
290
		$password = $accessKeyManager->createKey('MailListContext', $assocId, $assocId, 60); // 60 days
281
		return $password;
291
		return $password;
282
	}
292
	}
283
293
 Lines 333-339   class NotificationSettingsDAO extends DAO { Link Here 
333
	 * Gets the setting id for a maillist member (to access the accompanying access key)
343
	 * Gets the setting id for a maillist member (to access the accompanying access key)
334
	 * @return array
344
	 * @return array
335
	 */
345
	 */
336
	function getMailListSettingId($email, $settingName = 'mailListUncomfirmed') {
346
	function getMailListSettingId($email, $settingName = 'mailListUnconfirmed') {
337
		$application =& PKPApplication::getApplication();
347
		$application =& PKPApplication::getApplication();
338
		$productName = $application->getName();
348
		$productName = $application->getName();
339
		$context =& Request::getContext();
349
		$context =& Request::getContext();

Return to bug 5984