Skip to content

Commit

Permalink
Plugins/Language: 43587, remove 'public/' from ilComponentRepository:…
Browse files Browse the repository at this point in the history
…:PLUGIN_BASE_PATH
  • Loading branch information
nhaagen authored and klees committed Jan 16, 2025
1 parent 43ae2a3 commit ef62965
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
interface ilComponentRepository
{
public const PLUGIN_BASE_PATH = "public/Customizing/plugins";
public const PLUGIN_BASE_PATH = "Customizing/plugins";

/**
* Check if a component exists.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
Expand Down
5 changes: 1 addition & 4 deletions components/ILIAS/Language/classes/class.ilPluginLanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ public function __construct(ilPluginInfo $plugin_info)

protected function getLanguageDirectory(): string
{
$parts = explode('/', $this->plugin_info->getPath());
array_shift($parts); //remove "public/"
$parts[] = 'lang';
return implode('/', $parts);
return $this->plugin_info->getPath() . "/lang";
}

/**
Expand Down

0 comments on commit ef62965

Please sign in to comment.