rr
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -99,7 +99,7 @@ class pdfModel extends Model | ... | @@ -99,7 +99,7 @@ class pdfModel extends Model |
| 99 | 99 | ||
| 100 | $json = json_decode($json); | 100 | $json = json_decode($json); |
| 101 | 101 | ||
| 102 | $folder = str_replace(' ', '-', $json->pdf[0]->name); // Replaces all spaces with hyphens. | 102 | $folder = str_replace(' ', '-', $json->pdf[0]->folder); // Replaces all spaces with hyphens. |
| 103 | $folder = preg_replace('/[^A-Za-z0-9\-]/', '', $folder); | 103 | $folder = preg_replace('/[^A-Za-z0-9\-]/', '', $folder); |
| 104 | $pdfLocation = $json->pdf[0]->pdfLocation; | 104 | $pdfLocation = $json->pdf[0]->pdfLocation; |
| 105 | $file = explode('/', $pdfLocation); | 105 | $file = explode('/', $pdfLocation); | ... | ... |
-
Please register or sign in to post a comment