change to static self reference form to call methods
This commit is contained in:
@@ -1250,9 +1250,9 @@ class G
|
|||||||
$aAux = explode('/', $filename);
|
$aAux = explode('/', $filename);
|
||||||
$downloadFileName = $aAux[count($aAux) - 1];
|
$downloadFileName = $aAux[count($aAux) - 1];
|
||||||
}
|
}
|
||||||
header('Content-Disposition: attachment; filename="' . G::inflect($downloadFileName) . '"');
|
header('Content-Disposition: attachment; filename="' . static::inflect($downloadFileName) . '"');
|
||||||
} else {
|
} else {
|
||||||
header('Content-Disposition: inline; filename="' . G::inflect($downloadFileName) . '"');
|
header('Content-Disposition: inline; filename="' . static::inflect($downloadFileName) . '"');
|
||||||
}
|
}
|
||||||
header('Content-Type: ' . $contentType);
|
header('Content-Type: ' . $contentType);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user