change to static self reference form to call methods

This commit is contained in:
dante
2017-10-19 10:59:28 -04:00
parent 31b12efbb5
commit 305585b874

View File

@@ -1250,9 +1250,9 @@ class G
$aAux = explode('/', $filename);
$downloadFileName = $aAux[count($aAux) - 1];
}
header('Content-Disposition: attachment; filename="' . G::inflect($downloadFileName) . '"');
header('Content-Disposition: attachment; filename="' . static::inflect($downloadFileName) . '"');
} else {
header('Content-Disposition: inline; filename="' . G::inflect($downloadFileName) . '"');
header('Content-Disposition: inline; filename="' . static::inflect($downloadFileName) . '"');
}
header('Content-Type: ' . $contentType);