Skip to content

Commit c19c953

Browse files
committed
Update finishing.blade.php
1 parent ddb8f5b commit c19c953

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

resources/views/components/finishing.blade.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,39 +153,39 @@
153153
154154
155155
// Moves all previous images to the new path
156-
if (File::isDirectory(base_path('assets/img'))) {
156+
if (is_dir(base_path('assets/img'))) {
157157
$files = File::files(base_path('img'));
158158
foreach ($files as $file) {
159159
$filename = $file->getFilename();
160160
$destination = base_path('assets/img/' . $filename);
161161
if (!File::exists($destination)) {
162162
if (!$file->isDir()) {
163163
File::move($file, $destination);}}}}
164-
if (File::isDirectory(base_path('assets/img/background-img'))) {
164+
if (is_dir(base_path('assets/img/background-img'))) {
165165
$files = File::files(base_path('img/background-img'));
166166
foreach ($files as $file) {
167167
$filename = $file->getFilename();
168168
$destination = base_path('assets/img/background-img/' . $filename);
169169
if (!File::exists($destination)) {
170170
if (!$file->isDir()) {
171171
File::move($file, $destination);}}}}
172-
if (File::isDirectory(base_path('littlelink/images'))) {
172+
if (is_dir(base_path('littlelink/images'))) {
173173
$files = File::files(base_path('littlelink/images'));
174174
foreach ($files as $file) {
175175
$filename = $file->getFilename();
176176
$destination = base_path('assets/linkstack/images/' . $filename);
177177
if (!File::exists($destination)) {
178178
if (!$file->isDir()) {
179179
File::move($file, $destination);}}}}
180-
if (File::isDirectory(base_path('littlelink/images'))) {
180+
if (is_dir(base_path('littlelink/images'))) {
181181
$files = File::files(base_path('littlelink/images'));
182182
foreach ($files as $file) {
183183
$filename = $file->getFilename();
184184
$destination = base_path('assets/linkstack/images/' . $filename);
185185
if (!File::exists($destination)) {
186186
if (!$file->isDir()) {
187187
File::move($file, $destination);}}}}
188-
if (File::isDirectory(base_path('studio/favicon/icons'))) {
188+
if (is_dir(base_path('studio/favicon/icons'))) {
189189
$files = File::files(base_path('studio/favicon/icons'));
190190
foreach ($files as $file) {
191191
$filename = $file->getFilename();
@@ -204,8 +204,8 @@
204204
foreach ($users as $user) {
205205
$oldName = $user->littlelink_name . '.png';
206206
$newName = $user->id . '.png';
207-
$oldPath = base_path('img/' . $oldName);
208-
$newPath = base_path('img/' . $newName);
207+
$oldPath = base_path('assets/img/' . $oldName);
208+
$newPath = base_path('assets/img/' . $newName);
209209
210210
if (File::exists($oldPath)) {
211211
File::move($oldPath, $newPath);

0 commit comments

Comments
 (0)