OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki_sandbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5dc28dd
)
summarize_detail_newtral(): Snip the redundant (main) domain
author
henoheno
<henoheno>
Sun, 28 Dec 2008 14:17:18 +0000
(23:17 +0900)
committer
henoheno
<henoheno>
Sun, 28 Dec 2008 14:17:18 +0000
(23:17 +0900)
spam/spam.php
patch
|
blob
|
history
diff --git
a/spam/spam.php
b/spam/spam.php
index
4fb3894
..
8ee8cbc
100644
(file)
--- a/
spam/spam.php
+++ b/
spam/spam.php
@@
-1,5
+1,5
@@
<?php
<?php
-// $Id: spam.php,v 1.20
7 2008/12/27 15:21:41
henoheno Exp $
+// $Id: spam.php,v 1.20
8 2008/12/28 14:17:18
henoheno Exp $
// Copyright (C) 2006-2007 PukiWiki Developers Team
// License: GPL v2 or (at your option) any later version
//
// Copyright (C) 2006-2007 PukiWiki Developers Team
// License: GPL v2 or (at your option) any later version
//
@@
-918,9
+918,9
@@
function summarize_detail_newtral($progress = array())
$subs = array();
foreach(array_keys($trie[$key]) as $sub) {
if ($sub == '') {
$subs = array();
foreach(array_keys($trie[$key]) as $sub) {
if ($sub == '') {
- $subs[] = $key;
+ $subs[] = $key;
// 'example.com'
} else {
} else {
- $subs[] = $sub . '.
' . $key;
+ $subs[] = $sub . '.
..'; // 'A.foo.bar...'
}
}
$result[] = ' \'' . $key . '\' => \'' . implode(', ', $subs) . '\',';
}
}
$result[] = ' \'' . $key . '\' => \'' . implode(', ', $subs) . '\',';