From 1ba37e6edd304c6edce723f914b3497d129b5743 Mon Sep 17 00:00:00 2001 From: henoheno Date: Sun, 28 Nov 2004 17:52:29 +0900 Subject: [PATCH] Cleanup. Shrink --- plugin/source.inc.php | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/plugin/source.inc.php b/plugin/source.inc.php index d57c88e..f11b29d 100644 --- a/plugin/source.inc.php +++ b/plugin/source.inc.php @@ -1,31 +1,23 @@ $_source_messages['msg_notfound'], + 'body' => $_source_messages['err_notfound']); - if (!is_page($vars['page']) || !check_readable($vars['page'],false,false)) - { - return array( - 'msg'=>$_source_messages['msg_notfound'], - 'body'=>$_source_messages['err_notfound'] - ); - } - return array( - 'msg'=>$_source_messages['msg_title'], - 'body' => - '
'.
-			htmlspecialchars(join('',get_source($vars['page']))).
-			'
' - ); + return array('msg' => $_source_messages['msg_title'], + 'body' => '
' .
+		htmlspecialchars(join('', get_source($page))) . '
'); } ?> -- 2.11.0