Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
39707398
authored
2016-05-13 16:28:47 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
rr
1 parent
6d550598
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/pdfModel.php
app/pdfModel.php
View file @
3970739
...
...
@@ -99,7 +99,7 @@ class pdfModel extends Model
$json
=
json_decode
(
$json
);
$folder
=
str_replace
(
' '
,
'-'
,
$json
->
pdf
[
0
]
->
name
);
// Replaces all spaces with hyphens.
$folder
=
str_replace
(
' '
,
'-'
,
$json
->
pdf
[
0
]
->
folder
);
// Replaces all spaces with hyphens.
$folder
=
preg_replace
(
'/[^A-Za-z0-9\-]/'
,
''
,
$folder
);
$pdfLocation
=
$json
->
pdf
[
0
]
->
pdfLocation
;
$file
=
explode
(
'/'
,
$pdfLocation
);
...
...
Please
register
or
sign in
to post a comment