phpBB

Code Changes

File: includes/ucp/ucp_notifications.php

  Unmodified   Added   Modified   Removed
Line 180Line 180
				'GROUP_NAME'	=> $user->lang($group),
));


				'GROUP_NAME'	=> $user->lang($group),
));


			foreach ($subscription_types as $type => $data)

			foreach ($subscription_types as $type => $type_data)

			{
$template->assign_block_vars($block, array(
'TYPE' => $type,


			{
$template->assign_block_vars($block, array(
'TYPE' => $type,


					'NAME'				=> $user->lang($data['lang']),
'EXPLAIN' => (isset($user->lang[$data['lang'] . '_EXPLAIN'])) ? $user->lang($data['lang'] . '_EXPLAIN') : '',

					'NAME'				=> $user->lang($type_data['lang']),
'EXPLAIN' => (isset($user->lang[$type_data['lang'] . '_EXPLAIN'])) ? $user->lang($type_data['lang'] . '_EXPLAIN') : '',

				));

foreach ($notification_methods as $method => $method_data)

				));

foreach ($notification_methods as $method => $method_data)

Line 195Line 195
						'METHOD'			=> $method_data['id'],

'NAME' => $user->lang($method_data['lang']),

						'METHOD'			=> $method_data['id'],

'NAME' => $user->lang($method_data['lang']),

 

'AVAILABLE' => $method_data['method']->is_available($type_data['type']),


'SUBSCRIBED' => (isset($subscriptions[$type]) && in_array($method_data['id'], $subscriptions[$type])) ? true : false,
));


'SUBSCRIBED' => (isset($subscriptions[$type]) && in_array($method_data['id'], $subscriptions[$type])) ? true : false,
));

Line 203Line 205
		}

$template->assign_vars(array(

		}

$template->assign_vars(array(

			strtoupper($block) . '_COLS' => sizeof($notification_methods) + 2,

			strtoupper($block) . '_COLS' => count($notification_methods) + 1,

		));
}


		));
}