Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
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
f440737b
authored
2015-02-13 10:57:46 -0500
by
Marty Penner
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Make notification uploads paths more robust
1 parent
b43072e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
com/Notifications/Admin.php
com/Notifications/Admin.php
View file @
f440737
...
...
@@ -81,7 +81,7 @@ function display_page()
$text
=
$_POST
[
$lang
.
'_text'
];
$html
=
$_POST
[
$lang
.
'_html'
];
$attachments
=
[];
$uploadDir
=
__DIR__
.
'/../../../uploads
/notifications/'
;
$uploadDir
=
wp_upload_dir
()[
'basedir'
]
.
'
/notifications/'
;
fixFilesArray
(
$_FILES
[
$lang
.
'_attachment'
]);
...
...
@@ -328,7 +328,7 @@ function create_notification()
$text
=
$_POST
[
$lang
.
'_text'
];
$html
=
$_POST
[
$lang
.
'_html'
];
$attachments
=
[];
$uploadDir
=
__DIR__
.
'/../../../uploads
/notifications/'
;
$uploadDir
=
wp_upload_dir
()[
'basedir'
]
.
'
/notifications/'
;
fixFilesArray
(
$_FILES
[
$lang
.
'_attachment'
]);
...
...
Please
register
or
sign in
to post a comment