Skip to content

Commit

Permalink
fixed white space
Browse files Browse the repository at this point in the history
  • Loading branch information
LMOspaceace committed Jun 5, 2016
1 parent 9ce13a0 commit c976c0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions acp/ajaxchat_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function main($id, $mode)
$this->php_ext = $phpEx;
$this->phpbb_log = $phpbb_log;
$this->root_path = $root_path;

if (!defined('CHAT_TABLE'))
{
$chat_table = $table_prefix . 'ajax_chat';
Expand All @@ -74,14 +74,14 @@ public function main($id, $mode)
}
$this->id = $id;
$this->mode = $mode;
if($this->request->variable('action', ''))
if ($this->request->variable('action', ''))
{
$this->action = $this->request->variable('action', '', true);
}

// Add the posting lang file needed by BBCodes
$this->user->add_lang(array('posting'));

$submit = ($this->request->is_set_post('submit')) ? true : false;
$this->form_key = 'acp_ajax_chat';
add_form_key($this->form_key);
Expand Down Expand Up @@ -211,7 +211,7 @@ public function prune_chat($value, $key)
}
}
$this->id = str_replace("\\", "-", $this->id);

return '<a href="' . append_sid($this->u_action . '&amp;action=prune_chat') . '" data-ajax="true"><input class="button2" type="submit" id="' . $key . '_enable" name="' . $key . '_enable" value="' . $this->user->lang['PRUNE_NOW'] . '" /></a>';
}

Expand Down Expand Up @@ -255,7 +255,7 @@ public function truncate_chat($value, $key)
}
}
$this->id = str_replace("\\", "-", $this->id);

return '<a href="' . append_sid($this->u_action . '&amp;action=truncate_chat') . '" data-ajax="true"><input class="button2" type="submit" id="' . $key . '_enable" name="' . $key . '_enable" value="' . $this->user->lang['TRUNCATE_NOW'] . '" /></a>';
}

Expand Down
1 change: 0 additions & 1 deletion controller/chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace spaceace\ajaxchat\controller;

use phpbb\exception\http_exception;
use phpbb\user;
use phpbb\template\template;
use phpbb\db\driver\driver_interface as db_driver;
Expand Down

0 comments on commit c976c0e

Please sign in to comment.