33
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -60,7 +60,7 @@ class pdfModel extends Model | ... | @@ -60,7 +60,7 @@ class pdfModel extends Model |
| 60 | 60 | ||
| 61 | 61 | ||
| 62 | $json = json_decode($json); | 62 | $json = json_decode($json); |
| 63 | $folder = str_replace(' ', '-', $json->pdf[0]->name); // Replaces all spaces with hyphens. | 63 | $folder = str_replace(' ', '-', $json->pdf[0]->folder); // Replaces all spaces with hyphens. |
| 64 | $folder = preg_replace('/[^A-Za-z0-9\-]/', '', $folder); | 64 | $folder = preg_replace('/[^A-Za-z0-9\-]/', '', $folder); |
| 65 | $pdfLocation = $json->pdf[0]->pdfLocation; | 65 | $pdfLocation = $json->pdf[0]->pdfLocation; |
| 66 | $file = explode('/', $pdfLocation); | 66 | $file = explode('/', $pdfLocation); | ... | ... |
-
Please register or sign in to post a comment