Skip to content

Commit

Permalink
Remove footer.tmp
Browse files Browse the repository at this point in the history
Избавляюсь от tmp файлов
  • Loading branch information
Ilya-Zhulin committed Dec 12, 2023
1 parent 34f8e47 commit 855328c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
4 changes: 2 additions & 2 deletions includes/fields/scripter.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ protected function getInput() {
// $text = file_get_contents(JPATH_ROOT . '/templates/simple_blank/includes/head.php');
// file_put_contents(JPATH_ROOT . '/templates/simple_blank/includes/head.php', str_replace('path_to_theme_file2', '/templates/simple_blank/themes/' . $params->theme_select . '/head_bottom.php', $text));

$text = file_get_contents(JPATH_ROOT . '/templates/simple_blank/includes/footer.tmp');
file_put_contents(JPATH_ROOT . '/templates/simple_blank/includes/footer.php', str_replace('path_to_theme_file', '/templates/simple_blank/themes/' . $params->theme_select . '/footer.php', $text));
// $text = file_get_contents(JPATH_ROOT . '/templates/simple_blank/includes/footer.tmp');
// file_put_contents(JPATH_ROOT . '/templates/simple_blank/includes/footer.php', str_replace('path_to_theme_file', '/templates/simple_blank/themes/' . $params->theme_select . '/footer.php', $text));
}
}
}
15 changes: 0 additions & 15 deletions includes/footer.tmp

This file was deleted.

0 comments on commit 855328c

Please sign in to comment.