summaryrefslogtreecommitdiff
path: root/backlinks.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-06-01 15:16:50 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-06-01 15:16:50 +0000
commita33a85c5e34f4a02f4cd7cdaab87056b4412c86d (patch)
tree77bfb43bb211b8d9d829194fc369d3210837a4e1 /backlinks.php
parente6fafc7896ec05fb9f74fd923c381effadc05b7f (diff)
downloadwiki-a33a85c5e34f4a02f4cd7cdaab87056b4412c86d.tar.gz
wiki-a33a85c5e34f4a02f4cd7cdaab87056b4412c86d.tar.bz2
wiki-a33a85c5e34f4a02f4cd7cdaab87056b4412c86d.zip
remove a lot of antiquated code including breadcrumbs and outdated wiki-specific caching options, wiki tags and wiki dumps. probably there's going to be more to go soon. none of this stuff has been working for years now.
Diffstat (limited to 'backlinks.php')
-rw-r--r--backlinks.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/backlinks.php b/backlinks.php
index 22bcfd3..3a481ee 100644
--- a/backlinks.php
+++ b/backlinks.php
@@ -3,13 +3,13 @@
* assigned_modules
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
* @package wiki
* @subpackage functions
* @copyright Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
* @license Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
*/
-// $Header: /cvsroot/bitweaver/_bit_wiki/backlinks.php,v 1.9 2007/03/20 16:56:34 spiderr Exp $
+// $Header: /cvsroot/bitweaver/_bit_wiki/backlinks.php,v 1.10 2007/06/01 15:16:49 squareing Exp $
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
/**
@@ -23,13 +23,12 @@ $gBitSystem->verifyFeature( 'wiki_backlinks' );
// Get the page from the request var or default it to HomePage
if (!isset($_REQUEST["page"])) {
- $gBitSmarty->assign('msg', tra("No page indicated"));
- $gBitSystem->display( 'error.tpl' );
- die;
+ $gBitSmarty->fatalError(tra("No page indicated"));
} else {
$page = $_REQUEST["page"];
$gBitSmarty->assign_by_ref('page', $_REQUEST["page"]);
}
+
// Now check permissions to access this page
if (!$gBitUser->hasPermission( 'p_wiki_view_page' )) {
$gBitSmarty->assign('msg', tra("Permission denied you cannot view backlinks for this page"));
@@ -37,10 +36,8 @@ if (!$gBitUser->hasPermission( 'p_wiki_view_page' )) {
die;
}
// If the page doesn't exist then display an error
-if (!$wikilib->pageExists($page)) {
- $gBitSmarty->assign('msg', tra("The page cannot be found"));
- $gBitSystem->display( 'error.tpl' );
- die;
+if( !$gContent->pageExists( $page )) {
+ $gBitSmarty->fatalError(tra("The page could not be found"));
}
// Get the backlinks for the page "page"
$backlinks = $gContent->getBacklinks();