Skip to content

Commit

Permalink
Special timestamp case is no longer needed because it is now the default
Browse files Browse the repository at this point in the history
  • Loading branch information
carakas committed Dec 17, 2019
1 parent 7ba7f61 commit 764399d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions src/Backend/Core/Engine/Form.php
Expand Up @@ -82,16 +82,12 @@ public function addEditor($name, $value = null, $class = null, $classError = nul

// add the internal link lists-file
if (is_file(FRONTEND_CACHE_PATH . '/Navigation/editor_link_list_' . BackendLanguage::getWorkingLanguage() . '.js')) {
$timestamp = @filemtime(
FRONTEND_CACHE_PATH . '/Navigation/editor_link_list_' . BackendLanguage::getWorkingLanguage() . '.js'
);
$this->header->addJS(
'/src/Frontend/Cache/Navigation/editor_link_list_' . BackendLanguage::getWorkingLanguage(
) . '.js?m=' . $timestamp,
'/src/Frontend/Cache/Navigation/editor_link_list_' . BackendLanguage::getWorkingLanguage() . '.js',
null,
false,
true,
false
true
);
}

Expand Down
8 changes: 2 additions & 6 deletions src/Backend/Form/Type/EditorType.php
Expand Up @@ -29,16 +29,12 @@ public function configureOptions(OptionsResolver $optionsResolver): void

// add the internal link lists-file
if (is_file(FRONTEND_CACHE_PATH . '/Navigation/editor_link_list_' . Language::getWorkingLanguage() . '.js')) {
$timestamp = @filemtime(
FRONTEND_CACHE_PATH . '/Navigation/editor_link_list_' . Language::getWorkingLanguage() . '.js'
);
$header->addJS(
'/src/Frontend/Cache/Navigation/editor_link_list_' . Language::getWorkingLanguage(
) . '.js?m=' . $timestamp,
'/src/Frontend/Cache/Navigation/editor_link_list_' . Language::getWorkingLanguage() . '.js',
null,
false,
true,
false
true
);
}
}
Expand Down

0 comments on commit 764399d

Please sign in to comment.