Merged in mcuiza/processmaker/pm-2127 (pull request #1897)
PM-2127 - Admin>Settings>Logo En windows Server 2012 y WIndows 7 no permite cargar un logo
This commit is contained in:
@@ -2634,6 +2634,20 @@ class G
|
||||
$oldumask = umask( 0 );
|
||||
if (! is_dir( $path )) {
|
||||
G::verifyPath( $path, true );
|
||||
}
|
||||
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
||||
$file = str_replace("\\\\","\\",$file,$count);
|
||||
if(!$count) {
|
||||
$winPath = explode("\\",$file);
|
||||
$file = "";
|
||||
foreach($winPath as $k => $v){
|
||||
if($v != "") {
|
||||
$file.= $v."\\";
|
||||
}
|
||||
}
|
||||
$file = substr($file,0,-1);
|
||||
}
|
||||
}
|
||||
|
||||
G::LoadSystem('inputfilter');
|
||||
|
||||
Reference in New Issue
Block a user