Skip to content

Commit

Permalink
Use short array syntax (#2839)
Browse files Browse the repository at this point in the history
  • Loading branch information
kghbln committed Feb 20, 2021
1 parent 9164e5e commit 2b1f13f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions user/config-sample.php
Expand Up @@ -21,7 +21,7 @@
define( 'YOURLS_DB_NAME', 'yourls' );

/** MySQL hostname.
** If using a non standard port, specify it like 'hostname:port', eg. 'localhost:9999' or '127.0.0.1:666' */
** If using a non standard port, specify it like 'hostname:port', e.g. 'localhost:9999' or '127.0.0.1:666' */
define( 'YOURLS_DB_HOST', 'localhost' );

/** MySQL tables prefix
Expand Down Expand Up @@ -62,11 +62,11 @@
/** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as encrypted hashes
** YOURLS will auto encrypt plain text passwords in this file
** Read http://yourls.org/userpassword for more information */
$yourls_user_passwords = array(
$yourls_user_passwords = [
'username' => 'password',
// 'username2' => 'password2',
// You can have one or more 'login'=>'password' lines
);
];

/** URL shortening method: 36 or 62
** 36: generates all lowercase keywords (ie: 13jkm)
Expand All @@ -81,9 +81,9 @@
* Reserved keywords (so that generated URLs won't match them)
* Define here negative, unwanted or potentially misleading keywords.
*/
$yourls_reserved_URL = array(
$yourls_reserved_URL = [
'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick',
);
];

/*
** Personal settings would go after here.
Expand Down

0 comments on commit 2b1f13f

Please sign in to comment.