This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
friendica
/
friendica
mirror of
https://github.com/friendica/friendica.git
Watch
1
Star
2
Fork
1
Code
Issues
Releases
49
Wiki
Activity
Browse Source
pass autoname(0) test
pull/209/head
friendica
9 years ago
parent
053048af10
commit
221726392e
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
include/text.php
+ 3
- 0
include/text.php
View File
@ -80,6 +80,9 @@ function escape_tags($string) {
if
(
!
function_exists
(
'autoname'
))
{
function
autoname
(
$len
)
{
if
(
!
$len
)
return
''
;
$vowels
=
array
(
'a'
,
'a'
,
'ai'
,
'au'
,
'e'
,
'e'
,
'e'
,
'ee'
,
'ea'
,
'i'
,
'ie'
,
'o'
,
'ou'
,
'u'
);
if
(
mt_rand
(
0
,
5
)
==
4
)
$vowels
[]
=
'y'
;
Write
Preview
Loading…
Cancel
Save