Skip to content

Commit

Permalink
Component/Plugins: 43587, addendum - use absolute path for PLUGIN_BAS…
Browse files Browse the repository at this point in the history
…E_PATH
  • Loading branch information
nhaagen authored and klees committed Feb 3, 2025
1 parent fca6331 commit ba664d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
interface ilComponentRepository
{
public const PLUGIN_BASE_PATH = "Customizing/plugins";
public const PLUGIN_BASE_PATH = __DIR__ . '/../../../../public/Customizing/plugins';

/**
* Check if a component exists.
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/Component/classes/class.ilPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ protected function updateDatabase(): int
$lng = $DIC->language();

$dbupdate = new ilPluginDBUpdate(
$this->db,
$ilDB,
$this->getPluginInfo()
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(
$this->db = $db;
$this->plugin = $plugin;

$this->db_update_file = $this->PATH . $this->getDBUpdateScriptName();
$this->db_update_file = $this->getDBUpdateScriptName();

$this->current_version = $plugin->getCurrentDBVersion() ?? 0;

Expand Down

0 comments on commit ba664d1

Please sign in to comment.