Fixed bugs

This commit is contained in:
2026-06-19 16:40:37 +00:00
parent 0027766a77
commit 01fae418de
3 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -75,8 +75,8 @@ class ClassRepository {
public function getCustomFilesCachePath(Node $object) {
$path = $this->options['cache_dir'].DIRECTORY_SEPARATOR
.strtoupper(md5($object->getId())).DIRECTORY_SEPARATOR
.($object->getProperty(ObjectRetriever::REVISION_PROPERTY)
? $object->getProperty(ObjectRetriever::REVISION_PROPERTY)->getValue()
.($object->getProperty(Constants::PROPERTY_REVISION)
? $object->getProperty(Constants::PROPERTY_REVISION)->getValue()
: 'LocalConfig');
if (!is_dir($path)) mkdir($path, 0777, true);
return $path;
@@ -87,8 +87,8 @@ class ClassRepository {
$vars = $this->getURIVars($uri);
// Fetch class description
$revision = $object->getProperty(ObjectRetriever::REVISION_PROPERTY)
? $object->getProperty(ObjectRetriever::REVISION_PROPERTY)->getValue()
$revision = $object->getProperty(Constants::PROPERTY_REVISION)
? $object->getProperty(Constants::PROPERTY_REVISION)->getValue()
: 'LocalConfig';
// Clear cache if cached version exists
@@ -243,8 +243,8 @@ class ClassRepository {
$objectRetriever = $this->container->get(ObjectRetriever::class);
// Get revision
$revision = $object->getProperty(ObjectRetriever::REVISION_PROPERTY)
? $object->getProperty(ObjectRetriever::REVISION_PROPERTY)->getValue()
$revision = $object->getProperty(Constants::PROPERTY_REVISION)
? $object->getProperty(Constants::PROPERTY_REVISION)->getValue()
: 'LocalConfig';
// Build filename where cached version should exist