Completed
Push — develop ( 69e1c6...6a0b8a )
by Daniel
08:16
created
controller/admin_controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 		catch (\blitze\sitemaker\exception\base $e)
48 48
 		{
49 49
 			$message = $e->get_message($this->language);
50
-			trigger_error($this->language->lang($message) . adm_back_link($base_url), E_USER_WARNING);
50
+			trigger_error($this->language->lang($message).adm_back_link($base_url), E_USER_WARNING);
51 51
 		}
52 52
 	}
53 53
 }
Please login to merge, or discard this patch.
services/actions/type/add.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 			'POST_DATE'			=> $this->user->format_date(time()),
78 78
 			'ITEMS_PER_PAGE'	=> 10,
79 79
 			'TOPICS_PER_GROUP'	=> 4,
80
-			'U_ACTION'			=> $u_action . "&do=save&type=$type",
80
+			'U_ACTION'			=> $u_action."&do=save&type=$type",
81 81
 
82 82
 			'S_TYPE_OPS'				=> $this->get_field_options(),
83 83
 			'S_FORUM_OPTIONS'			=> make_forum_select(false, $forum_id, true, false, false),
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		$options = '';
116 116
 		foreach ($fields as $field => $object)
117 117
 		{
118
-			$options .= '<option value="' . $field . '">' . $this->language->lang($object->get_langname()) . '</option>';
118
+			$options .= '<option value="'.$field.'">'.$this->language->lang($object->get_langname()).'</option>';
119 119
 		}
120 120
 
121 121
 		return $options;
Please login to merge, or discard this patch.
services/actions/type/index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$this->template = $template;
53 53
 		$this->content_types = $content_types;
54 54
 		$this->phpbb_root_path = $phpbb_root_path;
55
-		$this->phpbb_admin_path = $this->phpbb_root_path . $relative_admin_path;
55
+		$this->phpbb_admin_path = $this->phpbb_root_path.$relative_admin_path;
56 56
 		$this->php_ext = $php_ext;
57 57
 	}
58 58
 
@@ -75,16 +75,16 @@  discard block
 block discarded – undo
75 75
 				'L_FORUM_PERMS'	=> $this->language->lang('EDIT_FORUM_PERMISSIONS', $langname),
76 76
 				'S_ENABLED'		=> $entity->get_content_enabled(),
77 77
 
78
-				'U_DELETE'		=> $u_action . '&amp;do=pre_delete&amp;type=' . $type,
79
-				'U_EDIT'		=> $u_action . '&amp;do=edit&amp;type=' . $type,
80
-				'U_STATUS'		=> $u_action . '&amp;do=toggle_status&amp;type=' . $type,
78
+				'U_DELETE'		=> $u_action.'&amp;do=pre_delete&amp;type='.$type,
79
+				'U_EDIT'		=> $u_action.'&amp;do=edit&amp;type='.$type,
80
+				'U_STATUS'		=> $u_action.'&amp;do=toggle_status&amp;type='.$type,
81 81
 				'U_VIEW'		=> $this->controller_helper->route('blitze_content_index', array('type' => $type)),
82
-				'U_POST'		=> append_sid("{$this->phpbb_root_path}ucp." . $this->php_ext, "i=-blitze-content-ucp-content_module&amp;mode=content&amp;action=post&amp;type={$type}"),
83
-				'U_GROUP_PERMS'	=> append_sid("{$this->phpbb_admin_path}index." . $this->php_ext, "i=acp_permissions&amp;mode=setting_group_global"),
84
-				'U_FORUM_PERMS'	=> append_sid("{$this->phpbb_admin_path}index." . $this->php_ext, "i=acp_permissions&amp;mode=setting_forum_local&amp;forum_id[]=$forum_id"),
82
+				'U_POST'		=> append_sid("{$this->phpbb_root_path}ucp.".$this->php_ext, "i=-blitze-content-ucp-content_module&amp;mode=content&amp;action=post&amp;type={$type}"),
83
+				'U_GROUP_PERMS'	=> append_sid("{$this->phpbb_admin_path}index.".$this->php_ext, "i=acp_permissions&amp;mode=setting_group_global"),
84
+				'U_FORUM_PERMS'	=> append_sid("{$this->phpbb_admin_path}index.".$this->php_ext, "i=acp_permissions&amp;mode=setting_forum_local&amp;forum_id[]=$forum_id"),
85 85
 			));
86 86
 		}
87 87
 
88
-		$this->template->assign_var('U_ADD_TYPE', $u_action . "&amp;do=add");
88
+		$this->template->assign_var('U_ADD_TYPE', $u_action."&amp;do=add");
89 89
 	}
90 90
 }
Please login to merge, or discard this patch.
services/actions/type/save.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 * @param \blitze\content\model\entity\type $unsaved_entity
109 109
 	 * @return void
110 110
 	 */
111
-	protected function handle_content_type($type, \blitze\content\model\entity\type &$unsaved_entity)
111
+	protected function handle_content_type($type, \blitze\content\model\entity\type & $unsaved_entity)
112 112
 	{
113 113
 		$forum_perm_from = $this->request->variable('copy_forum_perm', 0);
114 114
 
@@ -187,8 +187,8 @@  discard block
 block discarded – undo
187 187
 	{
188 188
 		if (!$type)
189 189
 		{
190
-			$u_set_permission = append_sid("{$this->phpbb_admin_path}index.$this->php_ext", 'i=permissions&mode=setting_forum_local&forum_id[]=' . $forum_id, true);
191
-			$message = $this->language->lang('CONTENT_TYPE_CREATED', '<a href="' . $u_set_permission . '">', '</a>');
190
+			$u_set_permission = append_sid("{$this->phpbb_admin_path}index.$this->php_ext", 'i=permissions&mode=setting_forum_local&forum_id[]='.$forum_id, true);
191
+			$message = $this->language->lang('CONTENT_TYPE_CREATED', '<a href="'.$u_set_permission.'">', '</a>');
192 192
 		}
193 193
 		else
194 194
 		{
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 		if ($old_langname !== $new_langname)
238 238
 		{
239 239
 			$forum_name = $this->language->lang($new_langname);
240
-			$sql = 'UPDATE ' . FORUMS_TABLE . " SET forum_name = '" . $this->db->sql_escape($forum_name) . "' WHERE forum_id = " . (int) $forum_id;
240
+			$sql = 'UPDATE '.FORUMS_TABLE." SET forum_name = '".$this->db->sql_escape($forum_name)."' WHERE forum_id = ".(int) $forum_id;
241 241
 			$this->db->sql_query($sql);
242 242
 		}
243 243
 	}
Please login to merge, or discard this patch.