修訂 | 4378dfeafc4b04349fb8ae6c3f4c46189bea2303 (tree) |
---|---|
時間 | 2007-07-29 14:22:36 |
作者 | henoheno <henoheno> |
Commiter | henoheno |
Show a message when the page seems not freezed
@@ -1,9 +1,10 @@ | ||
1 | 1 | <?php |
2 | -// $Id: nofollow.inc.php,v 1.1 2005/05/23 14:22:30 henoheno Exp $ | |
3 | -// Copyright (C) 2005 PukiWiki Developers Team | |
2 | +// $Id: nofollow.inc.php,v 1.2 2007/07/29 05:22:36 henoheno Exp $ | |
3 | +// Copyright (C) 2005, 2007 PukiWiki Developers Team | |
4 | 4 | // License: The same as PukiWiki |
5 | 5 | // |
6 | 6 | // NoFollow plugin |
7 | +// (See BugTrack2/72) | |
7 | 8 | |
8 | 9 | // Output contents with "nofollow,noindex" option |
9 | 10 | function plugin_nofollow_convert() |
@@ -11,9 +12,11 @@ function plugin_nofollow_convert() | ||
11 | 12 | global $vars, $nofollow; |
12 | 13 | |
13 | 14 | $page = isset($vars['page']) ? $vars['page'] : ''; |
14 | - | |
15 | - if(is_freeze($page)) $nofollow = 1; | |
16 | - | |
17 | - return ''; | |
15 | + if (is_freeze($page)) { | |
16 | + $nofollow = 1; | |
17 | + return ''; | |
18 | + } else { | |
19 | + return '#nofollow: Page not freezed'; | |
20 | + } | |
18 | 21 | } |
19 | 22 | ?> |