Skip to content

Commit

Permalink
Customizing/Init: Fix wrong path value in ILIAS_WEB_DIR constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay committed Dec 9, 2024
1 parent c2adf4e commit f757f5d
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ public function __construct()
}

if (!defined("ILIAS_WEB_DIR")) {
define('ILIAS_WEB_DIR', dirname(__DIR__, 4) . "/data/");
// databay-patch: begin ilias_web_dir
define('ILIAS_WEB_DIR', 'data');
// databay-patch: end ilias_web_dir
}

// initialise this last to make sure the environment defined here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ public function __construct()
}

if (!defined("ILIAS_WEB_DIR")) {
define('ILIAS_WEB_DIR', dirname(__DIR__, 4) . "/data/");
// databay-patch: begin ilias_web_dir
define('ILIAS_WEB_DIR', 'data');
// databay-patch: end ilias_web_dir
}

// initialise this last to make sure the environment defined here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ public function __construct()
}

if (!defined("ILIAS_WEB_DIR")) {
define('ILIAS_WEB_DIR', dirname(__DIR__, 4) . "/data/");
// databay-patch: begin ilias_web_dir
define('ILIAS_WEB_DIR', 'data');
// databay-patch: end ilias_web_dir
}

// initialise this last to make sure the environment defined here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ public function __construct()
}

if (!defined("ILIAS_WEB_DIR")) {
define('ILIAS_WEB_DIR', dirname(__DIR__, 4) . "/data/");
// databay-patch: begin ilias_web_dir
define('ILIAS_WEB_DIR', 'data');
// databay-patch: end ilias_web_dir
}

return [$ORIG_DIC, $ORIG_ilDB];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public function __construct(
define("CLIENT_WEB_DIR", dirname(__DIR__, 4) . "/data/" . $client_id);
}
if (!defined("ILIAS_WEB_DIR")) {
define("ILIAS_WEB_DIR", dirname(__DIR__, 4));
// databay-patch: begin ilias_web_dir
define('ILIAS_WEB_DIR', 'data');
// databay-patch: end ilias_web_dir
}
if (!defined("CLIENT_ID")) {
define("CLIENT_ID", $client_id);
Expand Down
22 changes: 22 additions & 0 deletions docs/databay/patches/ilias_web_dir_constant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Fix `ILIAS_WEB_DIR` constant

Dieser Patch korrigiert eine falsche Belegung der globalen PHP-Konstante `ILIAS_WEB_DIR` im
Setup-Kontext.

## Patch-Markierungen

Patches wurden mit `databay-patch: begin ilias_web_dir` und `databay-patch: end ilias_web_dir` markiert.

## Änderungen

Angepasst wurden im Rahmen der Funktionalität folgende Dateien:

* Services/Component/classes/Setup/class.ilComponentActivatePluginsObjective.php
* Services/Component/classes/Setup/class.ilComponentInstallPluginObjective.php
* Services/Component/classes/Setup/class.ilComponentUpdatePluginObjective.php
* Services/Language/classes/Setup/class.ilPluginLanguageUpdatedObjective.php
* Services/ResourceStorage/classes/Setup/class.ilResourceStorageMigrationHelper.php

## Spezifikation

See: https://mantis.ilias.de/view.php?id=43107#c110424

0 comments on commit f757f5d

Please sign in to comment.