mirror of
https://github.com/vrana/adminer.git
synced 2026-01-09 00:53:04 +01:00
Save bytes
This commit is contained in:
@@ -919,7 +919,7 @@ class Adminer {
|
||||
* @return string filename without extension
|
||||
*/
|
||||
function dumpFilename(string $identifier): string {
|
||||
return friendly_url($identifier != "" ? $identifier : (SERVER != "" ? SERVER : "localhost"));
|
||||
return friendly_url($identifier != "" ? $identifier : (SERVER ?: "localhost"));
|
||||
}
|
||||
|
||||
/** Send headers for export
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
class AdminerDumpDate extends Adminer\Plugin {
|
||||
|
||||
function dumpFilename($identifier) {
|
||||
return Adminer\friendly_url(($identifier != "" ? $identifier : (Adminer\SERVER != "" ? Adminer\SERVER : "localhost")) . "-" . Adminer\get_val("SELECT NOW()"));
|
||||
return Adminer\friendly_url(($identifier != "" ? $identifier : (Adminer\SERVER ?: "localhost")) . "-" . Adminer\get_val("SELECT NOW()"));
|
||||
}
|
||||
|
||||
protected $translations = array(
|
||||
|
||||
Reference in New Issue
Block a user