summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorspider@app1 <spiderr@bitweaver.org>2016-06-23 20:48:31 -0400
committerspider@app1 <spiderr@bitweaver.org>2016-06-23 20:48:31 -0400
commita04ba384759051f020d1442e7b8847e504808ad4 (patch)
treed140f01cffacc6ca62dad3369ed86f5d2f646162 /templates
parent50173909f98b337554d879996b0a7a65e76b445e (diff)
downloadwiki-a04ba384759051f020d1442e7b8847e504808ad4.tar.gz
wiki-a04ba384759051f020d1442e7b8847e504808ad4.tar.bz2
wiki-a04ba384759051f020d1442e7b8847e504808ad4.zip
remove usage of gContent in center_wiki_page
Diffstat (limited to 'templates')
-rw-r--r--templates/center_wiki_page.php2
-rw-r--r--templates/center_wiki_page.tpl16
2 files changed, 9 insertions, 9 deletions
diff --git a/templates/center_wiki_page.php b/templates/center_wiki_page.php
index a3dc4c2..45460bf 100644
--- a/templates/center_wiki_page.php
+++ b/templates/center_wiki_page.php
@@ -15,4 +15,4 @@ if( !empty( $moduleParams['module_params']['notitle'] ) ) {
$modulePage->mInfo['title'] = $moduleParams['title'];
}
$_template->tpl_vars['showTitle'] = new Smarty_variable( $showTitle );
-$_template->tpl_vars['gContent'] = new Smarty_variable( $modulePage );
+$_template->tpl_vars['wikiPage'] = new Smarty_variable( $modulePage );
diff --git a/templates/center_wiki_page.tpl b/templates/center_wiki_page.tpl
index ae80c22..3a3259e 100644
--- a/templates/center_wiki_page.tpl
+++ b/templates/center_wiki_page.tpl
@@ -1,19 +1,19 @@
{strip}
-{if $gContent}
+{if $wikiPage}
<div class="display wiki">
<nav class="floaticon"> <!-- Actions -->
- {if $gContent->hasUpdatePermission()}
- <a href="{$smarty.const.WIKI_PKG_URL}edit.php?page_id={$gContent->mInfo.page_id}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a>
+ {if $wikiPage->hasUpdatePermission()}
+ <a href="{$smarty.const.WIKI_PKG_URL}edit.php?page_id={$wikiPage->mInfo.page_id}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a>
{/if}
- {if $gBitSystem->isPackageActive( 'pdf' ) && $gContent->hasUserPermission( 'p_pdf_generation' )}
- <a title="{tr}create PDF{/tr}" href="{$smarty.const.PDF_PKG_URL}?page_id={$gContent->mInfo.page_id}">{biticon ipackage="pdf" iname="pdf" iexplain="PDF"}</a>
+ {if $gBitSystem->isPackageActive( 'pdf' ) && $wikiPage->hasUserPermission( 'p_pdf_generation' )}
+ <a title="{tr}create PDF{/tr}" href="{$smarty.const.PDF_PKG_URL}?page_id={$wikiPage->mInfo.page_id}">{biticon ipackage="pdf" iname="pdf" iexplain="PDF"}</a>
{/if}
</nav> <!-- End Actions -->
{if $showTitle}
<header>
- <h1>{$gContent->getTitle()|escape}</h1>
- {if $gContent->getField('summary')}<small>{$gContent->getField('summary')}</small>{/if}
+ <h1>{$wikiPage->getTitle()|escape}</h1>
+ {if $wikiPage->getField('summary')}<small>{$wikiPage->getField('summary')}</small>{/if}
</header>
{/if}
@@ -22,7 +22,7 @@
{if $gBitSystem->isFeatureActive( 'liberty_auto_display_attachment_thumbs' )}
{include file="bitpackage:liberty/storage_thumbs.tpl"}
{/if}
- {$gContent->mInfo.parsed_data}
+ {$wikiPage->mInfo.parsed_data}
</div>
</section>
</div>