Skip to content

Commit

Permalink
Update script_renameId.php
Browse files Browse the repository at this point in the history
Sekiro-kost authored Dec 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6772985 commit c996452
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugin_info/script_renameId.php
Original file line number Diff line number Diff line change
@@ -6,13 +6,15 @@ function replacePluginIdInFiles($directory, $newId) {

foreach ($files as $file) {
if ($file->isFile()) {
$filePath = $file->getRealPath();
$fileContents = file_get_contents($filePath);


$fileName = $file->getFilename();
if ($fileName === 'script_renameId.php') {
continue;
}


$filePath = $file->getRealPath();
$fileContents = file_get_contents($filePath);

$lines = explode(PHP_EOL, $fileContents);
foreach ($lines as &$line) {
if (strpos($line, "include_file('core', 'plugin.template', 'js');") === false) {

0 comments on commit c996452

Please sign in to comment.