Completed
Pull Request — master (#26)
by Daniel
12:32 queued 09:49
created
event/listener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
 	public function load_permission_language(\phpbb\event\data $event)
69 69
 	{
70 70
 		$permissions = $event['permissions'];
71
-		$permissions['a_sm_settings']	= array('lang' => 'ACL_A_SM_SETTINGS', 'cat' => 'misc');
72
-		$permissions['a_sm_manage_blocks']	= array('lang' => 'ACL_A_SM_MANAGE_BLOCKS', 'cat' => 'misc');
73
-		$permissions['a_sm_manage_menus']	= array('lang' => 'ACL_A_SM_MANAGE_MENUS', 'cat' => 'misc');
71
+		$permissions['a_sm_settings'] = array('lang' => 'ACL_A_SM_SETTINGS', 'cat' => 'misc');
72
+		$permissions['a_sm_manage_blocks'] = array('lang' => 'ACL_A_SM_MANAGE_BLOCKS', 'cat' => 'misc');
73
+		$permissions['a_sm_manage_menus'] = array('lang' => 'ACL_A_SM_MANAGE_MENUS', 'cat' => 'misc');
74 74
 		$event['permissions'] = $permissions;
75 75
 	}
76 76
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	public function add_viewonline_location(\phpbb\event\data $event)
81 81
 	{
82
-		if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/forum') === 0)
82
+		if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.'.$this->php_ext.'/forum') === 0)
83 83
 		{
84 84
 			$event['location'] = $this->translator->lang('FORUM_INDEX');
85 85
 			$event['location_url'] = $this->phpbb_container->get('controller.helper')->route('blitze_sitemaker_forum');
Please login to merge, or discard this patch.
acp/settings_module.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 			$this->config->set('sm_forum_icon', $this->request->variable('forum_icon', ''));
142 142
 			$this->config->set('sm_navbar_menu', $this->request->variable('navbar_menu', 0));
143 143
 
144
-			$this->trigger_error($this->translator->lang('SETTINGS_SAVED') . adm_back_link($this->u_action));
144
+			$this->trigger_error($this->translator->lang('SETTINGS_SAVED').adm_back_link($this->u_action));
145 145
 		}
146 146
 	}
147 147
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	{
154 154
 		$style_prefs = (array) json_decode($this->config_text->get('sm_layout_prefs'), true);
155 155
 
156
-		$result = $this->db->sql_query('SELECT style_id, style_name FROM ' . STYLES_TABLE);
156
+		$result = $this->db->sql_query('SELECT style_id, style_name FROM '.STYLES_TABLE);
157 157
 
158 158
 		$styles = array();
159 159
 		while ($row = $this->db->sql_fetchrow($result))
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 			$path = dirname($path);
232 232
 			$name = basename($path);
233 233
 
234
-			$layouts[$name] = $this->phpbb_root_path . $path . '/';
234
+			$layouts[$name] = $this->phpbb_root_path.$path.'/';
235 235
 		}
236 236
 		ksort($layouts);
237 237
 
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 			$id = $entity->get_menu_id();
255 255
 			$name = $entity->get_menu_name();
256 256
 			$selected = ($id == $this->config['sm_navbar_menu']) ? ' selected="selected"' : '';
257
-			$options .= '<option value="' . $id . '"' . $selected . '>' . $name . '</option>';
257
+			$options .= '<option value="'.$id.'"'.$selected.'>'.$name.'</option>';
258 258
 		}
259 259
 
260 260
 		return $options;
Please login to merge, or discard this patch.