diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-01 18:42:06 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-01 18:42:06 +0000 |
| commit | aa1fc688af3a1b78a73369d378b0c5b3cdbd9bee (patch) | |
| tree | 096ac1d919c8fea068b59334c67457f636289121 /backlinks.php | |
| parent | cb5983c245afe264915abf248d87fb7a6498751c (diff) | |
| download | wiki-aa1fc688af3a1b78a73369d378b0c5b3cdbd9bee.tar.gz wiki-aa1fc688af3a1b78a73369d378b0c5b3cdbd9bee.tar.bz2 wiki-aa1fc688af3a1b78a73369d378b0c5b3cdbd9bee.zip | |
merge recent changes with HEAD - R1 and HEAD are identical now
Diffstat (limited to 'backlinks.php')
| -rw-r--r-- | backlinks.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/backlinks.php b/backlinks.php index 7fbb34c..75d2338 100644 --- a/backlinks.php +++ b/backlinks.php @@ -3,13 +3,13 @@ * assigned_modules * * @author spider <spider@steelsun.com> - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ * @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.2 2005/06/28 07:46:27 spiderr Exp $ +// $Header: /cvsroot/bitweaver/_bit_wiki/backlinks.php,v 1.3 2005/08/01 18:42:04 squareing Exp $ // All Rights Reserved. See copyright.txt for details and a complete list of authors. /** @@ -20,37 +20,37 @@ include_once( WIKI_PKG_PATH.'lookup_page_inc.php'); $gBitSystem->verifyPackage( 'wiki' ); if ($feature_backlinks != 'y') { - $smarty->assign('msg', tra("This feature is disabled").": feature_backlinks"); + $gBitSmarty->assign('msg', tra("This feature is disabled").": feature_backlinks"); $gBitSystem->display( 'error.tpl' ); die; } // Get the page from the request var or default it to HomePage if (!isset($_REQUEST["page"])) { - $smarty->assign('msg', tra("No page indicated")); + $gBitSmarty->assign('msg', tra("No page indicated")); $gBitSystem->display( 'error.tpl' ); die; } else { $page = $_REQUEST["page"]; - $smarty->assign_by_ref('page', $_REQUEST["page"]); + $gBitSmarty->assign_by_ref('page', $_REQUEST["page"]); } include_once( WIKI_PKG_PATH.'page_setup_inc.php' ); // Now check permissions to access this page if (!$gBitUser->hasPermission( 'bit_p_view' )) { - $smarty->assign('msg', tra("Permission denied you cannot view backlinks for this page")); + $gBitSmarty->assign('msg', tra("Permission denied you cannot view backlinks for this page")); $gBitSystem->display( 'error.tpl' ); die; } // If the page doesn't exist then display an error if (!$wikilib->pageExists($page)) { - $smarty->assign('msg', tra("The page cannot be found")); + $gBitSmarty->assign('msg', tra("The page cannot be found")); $gBitSystem->display( 'error.tpl' ); die; } // Get the backlinks for the page "page" $backlinks = $gContent->getBacklinks(); -$smarty->assign_by_ref('backlinks', $backlinks); +$gBitSmarty->assign_by_ref('backlinks', $backlinks); // Display the template $gBitSystem->display( 'bitpackage:wiki/backlinks.tpl'); -$smarty->assign('show_page_bar', 'y'); +$gBitSmarty->assign('show_page_bar', 'y'); ?> |
