diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-06-01 16:01:33 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-06-01 16:01:33 +0000 |
| commit | 73811143a0a5d08387b7b41b94aeb34439e426a5 (patch) | |
| tree | 256b63b90aa266f566a8c5b9eaec5177717c6bbf /like_pages.php | |
| parent | a33a85c5e34f4a02f4cd7cdaab87056b4412c86d (diff) | |
| download | wiki-73811143a0a5d08387b7b41b94aeb34439e426a5.tar.gz wiki-73811143a0a5d08387b7b41b94aeb34439e426a5.tar.bz2 wiki-73811143a0a5d08387b7b41b94aeb34439e426a5.zip | |
clean up more stuff and finally get rid of wikilib and only create class where needed - wikilib is down to 4 or 5 functions now
Diffstat (limited to 'like_pages.php')
| -rw-r--r-- | like_pages.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/like_pages.php b/like_pages.php index f826408..4b8974f 100644 --- a/like_pages.php +++ b/like_pages.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/like_pages.php,v 1.10 2007/06/01 15:16:49 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/like_pages.php,v 1.11 2007/06/01 16:01:30 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: like_pages.php,v 1.10 2007/06/01 15:16:49 squareing Exp $ + * $Id: like_pages.php,v 1.11 2007/06/01 16:01:30 squareing Exp $ * @package wiki * @subpackage functions */ @@ -25,13 +25,11 @@ $gBitSystem->verifyPermission( 'p_wiki_view_page', tra( "Permission denied you c // Get the page from the request var or default it to HomePage if( !$gContent->isValid() ) { - $gBitSmarty->assign('msg', tra("No page indicated")); - $gBitSystem->display( 'error.tpl' ); - die; + $gBitSystem->fatalError( tra( "No page indicated" )); } -$likepages = $gContent->get_like_pages( $gContent->mInfo['title'] ); -$gBitSmarty->assign_by_ref('likepages', $likepages); +$likepages = $gContent->getLikePages( $gContent->mInfo['title'] ); +$gBitSmarty->assign_by_ref( 'likepages', $likepages ); // Display the template $gBitSystem->display( 'bitpackage:wiki/like_pages.tpl'); |
