Skip to content

Commit 223a5ae

Browse files
author
Dark❶
committed
Fix 2.0.2
- EPV Changes Signed-off-by: Dark❶ <dark-1@users.noreply.github.com>
1 parent 4d8b9ca commit 223a5ae

File tree

10 files changed

+68
-10
lines changed

10 files changed

+68
-10
lines changed

acp/usu.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class usu
3535
/** @var \phpbb\user */
3636
protected $user;
3737

38+
/** @var \phpbb\log\log */
39+
protected $phpbb_log;
40+
3841
/** @var string */
3942
protected $phpbb_root_path;
4043

@@ -57,7 +60,7 @@ class usu
5760

5861
function main($id, $mode)
5962
{
60-
global $config, $db, $user, $template, $request, $language;
63+
global $config, $db, $user, $template, $request, $language, $phpbb_log;
6164
global $phpbb_root_path, $phpbb_admin_path, $phpEx;
6265
global $phpbb_container;
6366

@@ -67,6 +70,7 @@ function main($id, $mode)
6770
$this->request = $request;
6871
$this->template = $template;
6972
$this->user = $user;
73+
$this->phpbb_log = $phpbb_log;
7074
$this->phpbb_root_path = $phpbb_root_path;
7175
$this->php_ext = $phpEx;
7276
$this->language = $language;
@@ -162,7 +166,7 @@ function main($id, $mode)
162166
{
163167
// we assume that the force server var will not break everything
164168
// since this is in use in all cases in USU
165-
set_config('force_server_vars', 1);
169+
$this->config->set('force_server_vars', 1);
166170
}
167171
}
168172

@@ -437,7 +441,7 @@ function main($id, $mode)
437441

438442
if (!isset($this->config[$config_name]))
439443
{
440-
set_config($config_name, $config_setup['default']);
444+
$this->config->set($config_name, $config_setup['default']);
441445
unset($display_vars['vars'][$config_name]['default']);
442446
}
443447
}
@@ -754,7 +758,7 @@ function main($id, $mode)
754758
}
755759
else if ($mode == 'extended')
756760
{
757-
set_config($config_name, $config_value);
761+
$this->config->set($config_name, $config_value);
758762
}
759763
}
760764
}
@@ -772,12 +776,12 @@ function main($id, $mode)
772776
{
773777
$this->seo_server_conf(false);
774778

775-
add_log('admin', 'SEO_LOG_CONFIG_' . strtoupper($mode));
779+
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'SEO_LOG_CONFIG_' . strtoupper($mode), time());
776780
}
777781
}
778782
else if ($mode == 'extended')
779783
{
780-
add_log('admin', 'SEO_LOG_CONFIG_' . strtoupper($mode));
784+
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'SEO_LOG_CONFIG_' . strtoupper($mode), time());
781785

782786
trigger_error($this->language->lang('CONFIG_UPDATED') . adm_back_link($this->u_action));
783787
}
@@ -795,7 +799,7 @@ function main($id, $mode)
795799
{
796800
global $msg_long_text;
797801

798-
add_log('admin', 'SEO_LOG_CONFIG_' . strtoupper($mode));
802+
$this->phpbb_log->add('admin', $this->user->data['user_id'], $this->user->ip, 'SEO_LOG_CONFIG_' . strtoupper($mode), time());
799803

800804
$msg = !empty($seo_msg) ? '<br /><h1 style="color:red;text-align:left;">' . $this->language->lang('SEO_VALIDATE_INFO') . '</h1><ul style="text-align:left;">' . implode(' ', $seo_msg) . '</ul><br />' : '';
801805

core/customise.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
namespace phpbbseo\usu\core;
1212

13+
/**
14+
* DO NOT CHANGE
15+
* @ignore
16+
*/
17+
if (!defined('IN_PHPBB'))
18+
{
19+
exit;
20+
}
21+
1322
/**
1423
* customize trait
1524
* www.phpBB-SEO.ir

core/get_set.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
namespace phpbbseo\usu\core;
1212

13+
/**
14+
* DO NOT CHANGE
15+
* @ignore
16+
*/
17+
if (!defined('IN_PHPBB'))
18+
{
19+
exit;
20+
}
21+
1322
/**
1423
* get_set trait
1524
* www.phpBB-SEO.ir

core/rewriter.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
namespace phpbbseo\usu\core;
1212

13+
/**
14+
* DO NOT CHANGE
15+
* @ignore
16+
*/
17+
if (!defined('IN_PHPBB'))
18+
{
19+
exit;
20+
}
21+
1322
/**
1423
* rewriter trait
1524
* www.phpBB-SEO.ir

core/seo.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
namespace phpbbseo\usu\core;
1212

13+
/**
14+
* DO NOT CHANGE
15+
* @ignore
16+
*/
17+
if (!defined('IN_PHPBB'))
18+
{
19+
exit;
20+
}
21+
1322
/**
1423
* seo trait
1524
* www.phpBB-SEO.ir

core/url.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
namespace phpbbseo\usu\core;
1212

13+
/**
14+
* DO NOT CHANGE
15+
* @ignore
16+
*/
17+
if (!defined('IN_PHPBB'))
18+
{
19+
exit;
20+
}
21+
1322
/**
1423
* url trait
1524
* www.phpBB-SEO.ir

language/en/acp_usu.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
99
*
1010
*/
11+
1112
/**
12-
*/
13+
* DO NOT CHANGE
14+
* @ignore
15+
*/
1316
if (!defined('IN_PHPBB'))
1417
{
1518
exit;

language/en/acp_usu_install.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
99
*
1010
*/
11+
1112
/**
12-
*/
13+
* DO NOT CHANGE
14+
* @ignore
15+
*/
1316
if (!defined('IN_PHPBB'))
1417
{
1518
exit;

language/en/info_acp_usu.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
99
*
1010
*/
11+
1112
/**
12-
*/
13+
* DO NOT CHANGE
14+
* @ignore
15+
*/
1316
if (!defined('IN_PHPBB'))
1417
{
1518
exit;

LICENSE renamed to license.txt

File renamed without changes.

0 commit comments

Comments
 (0)