diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-06-01 15:16:50 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-06-01 15:16:50 +0000 |
| commit | a33a85c5e34f4a02f4cd7cdaab87056b4412c86d (patch) | |
| tree | 77bfb43bb211b8d9d829194fc369d3210837a4e1 /modules | |
| parent | e6fafc7896ec05fb9f74fd923c381effadc05b7f (diff) | |
| download | wiki-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 'modules')
| -rw-r--r-- | modules/mod_breadcrumb.php | 25 | ||||
| -rw-r--r-- | modules/mod_breadcrumb.tpl | 22 | ||||
| -rw-r--r-- | modules/mod_last_modif_pages.php | 13 |
3 files changed, 7 insertions, 53 deletions
diff --git a/modules/mod_breadcrumb.php b/modules/mod_breadcrumb.php deleted file mode 100644 index 18a6fbd..0000000 --- a/modules/mod_breadcrumb.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php -/** - * $Header: /cvsroot/bitweaver/_bit_wiki/modules/Attic/mod_breadcrumb.php,v 1.3 2005/08/01 18:42:05 squareing Exp $ - * - * Copyright (c) 2004 bitweaver.org - * Copyright (c) 2003 tikwiki.org - * Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. - * 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: mod_breadcrumb.php,v 1.3 2005/08/01 18:42:05 squareing Exp $ - * @package wiki - * @subpackage modules - */ - -/** - * @param maxlen = max number of displayed characters for the page name - */ -if (!isset($_SESSION["breadCrumb"])) { - $_SESSION["breadCrumb"] = array(); -} -$bbreadCrumb = array_reverse($_SESSION["breadCrumb"]); -$gBitSmarty->assign('breadCrumb', $bbreadCrumb); -$gBitSmarty->assign('maxlen', isset($module_params["maxlen"]) ? $module_params["maxlen"] : 0); -?>
\ No newline at end of file diff --git a/modules/mod_breadcrumb.tpl b/modules/mod_breadcrumb.tpl deleted file mode 100644 index ca1647d..0000000 --- a/modules/mod_breadcrumb.tpl +++ /dev/null @@ -1,22 +0,0 @@ -{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/Attic/mod_breadcrumb.tpl,v 1.4 2005/10/12 15:14:13 spiderr Exp $ *} -{strip} -{if $gBitSystem->isFeatureActive( 'feature_featuredLinks' )} - {bitmodule title="$moduleTitle" name="breadcrumb"} - <ol class="wiki"> - {section name=ix loop=$breadCrumb} - <li> - <a href="{$smarty.const.WIKI_PKG_URL}index.php?page={$breadCrumb[ix]}"> - {if $maxlen > 0} - {$breadCrumb[ix]|truncate:$maxlen:"...":true} - {else} - {$breadCrumb[ix]} - {/if} - </a> - </li> - {sectionelse} - <li></li> - {/section} - </ol> - {/bitmodule} -{/if} -{/strip} diff --git a/modules/mod_last_modif_pages.php b/modules/mod_last_modif_pages.php index 55e7455..1513325 100644 --- a/modules/mod_last_modif_pages.php +++ b/modules/mod_last_modif_pages.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_last_modif_pages.php,v 1.7 2007/05/23 05:36:58 laetzer Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_last_modif_pages.php,v 1.8 2007/06/01 15:16:50 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,11 +8,11 @@ * 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: mod_last_modif_pages.php,v 1.7 2007/05/23 05:36:58 laetzer Exp $ + * $Id: mod_last_modif_pages.php,v 1.8 2007/06/01 15:16:50 squareing Exp $ * @package wiki * @subpackage modules */ -global $gQueryUserId, $moduleParams, $wikilib; +global $gQueryUserId, $moduleParams; $params = $moduleParams['module_params']; /** @@ -21,15 +21,16 @@ $params = $moduleParams['module_params']; if( $gBitUser->hasPermission( 'p_wiki_view_page' ) ) { require_once( WIKI_PKG_PATH.'BitPage.php' ); + $wp = new BitPage(); + $listHash = array( 'max_records' => $moduleParams['module_rows'], 'sort_mode' => 'last_modified_desc', 'user_id' => $gQueryUserId, ); - - $modLastModif = $wikilib->getList( $listHash ); + $modLastModif = $wp->getList( $listHash ); $gBitSmarty->assign( 'modLastModif', $modLastModif ); $gBitSmarty->assign( 'maxlen', isset( $params["maxlen"] ) ? $params["maxlen"] : 0 ); } -?>
\ No newline at end of file +?> |
