diff -r ceeecb160aec -r b572ce1114f1 includes/functions.php
--- a/includes/functions.php Sun May 10 14:47:14 2009 -0400
+++ b/includes/functions.php Sun May 10 15:52:53 2009 -0400
@@ -921,6 +921,44 @@
}
/**
+ * Show the "this is a redirector" notice
+ * @param string Target Page ID
+ * @param string Target Namespace
+ */
+
+function display_redirect_notice($page_id, $namespace)
+{
+ global $db, $session, $paths, $template, $plugins; // Common objects
+ global $lang, $output;
+
+ $url = makeUrlNS($namespace, $page_id, false, true);
+ $ns = namespace_factory($page_id, $namespace);
+ $page_data = $ns->get_cdata();
+
+ $title = $page_data['name'];
+
+ $cls = $ns->exists() ? '' : 'class="wikilink-nonexistent" ';
+
+ $a = '' . $title . '';
+ $redir_html = '
+ + | ++ ' . $lang->get('page_msg_this_is_a_redirector', array( 'redirect_target' => $a )) . ' + | +