Skip to content

Commit

Permalink
improve/replace all relative includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 17, 2023
1 parent 9dd3cbb commit b8f30e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions installer/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@
<ol id="progress">
<?php
$include_steps = [
1 => './check.php',
2 => './config.php',
3 => './test.php',
1 => __DIR__ . '/check.php',
2 => __DIR__ . '/config.php',
3 => __DIR__ . '/test.php',
];

if (!in_array($RCI->step, array_keys($include_steps))) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/password/drivers/tinycp.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class rcube_tinycp_password
{
public function save($currpass, $newpass, $username)
{
require_once 'TinyCPConnector.php';
require_once __DIR__ . '/TinyCPConnector.php';

$tinycp_host = rcmail::get_instance()->config->get('password_tinycp_host');
$tinycp_port = rcmail::get_instance()->config->get('password_tinycp_port');
Expand Down

0 comments on commit b8f30e3

Please sign in to comment.