diff options
| -rw-r--r-- | admin/admin_external_wikis.php | 10 | ||||
| -rw-r--r-- | backlinks.php | 4 | ||||
| -rw-r--r-- | book_to_html.php | 2 | ||||
| -rw-r--r-- | books.php | 4 | ||||
| -rw-r--r-- | display_bitpage_inc.php | 6 | ||||
| -rw-r--r-- | edit.php | 6 | ||||
| -rw-r--r-- | edit_book.php | 2 | ||||
| -rw-r--r-- | like_pages.php | 2 | ||||
| -rw-r--r-- | list_pages.php | 8 | ||||
| -rw-r--r-- | lookup_page_inc.php | 4 | ||||
| -rw-r--r-- | orphan_pages.php | 8 | ||||
| -rw-r--r-- | page_history.php | 8 | ||||
| -rw-r--r-- | page_loader.php | 2 | ||||
| -rw-r--r-- | page_watches.php | 4 | ||||
| -rw-r--r-- | print_multi_pages.php | 2 | ||||
| -rw-r--r-- | print_pages.php | 2 | ||||
| -rw-r--r-- | sitemap.php | 2 | ||||
| -rwxr-xr-x | slideshow.php | 6 |
18 files changed, 41 insertions, 41 deletions
diff --git a/admin/admin_external_wikis.php b/admin/admin_external_wikis.php index 35c9c7e..6daab7b 100644 --- a/admin/admin_external_wikis.php +++ b/admin/admin_external_wikis.php @@ -40,7 +40,7 @@ if (empty( $_REQUEST["sort_mode"] )) { } else { $sort_mode = $_REQUEST["sort_mode"]; } -$gBitSmarty->assign_by_ref('sort_mode', $sort_mode); +$gBitSmarty->assignByRef('sort_mode', $sort_mode); if (!isset($_REQUEST["offset"])) { $offset = 0; } else { @@ -50,17 +50,17 @@ if (isset($_REQUEST['page'])) { $page = &$_REQUEST['page']; $offset = ($page - 1) * $max_records; } -$gBitSmarty->assign_by_ref('offset', $offset); +$gBitSmarty->assignByRef('offset', $offset); if (isset($_REQUEST["find"])) { $find = $_REQUEST["find"]; } else { $find = ''; } -$gBitSmarty->assign_by_ref('find', $find); +$gBitSmarty->assignByRef('find', $find); $channels = $adminlib->list_extwiki($offset, $max_records, $sort_mode, $find); $cant_pages = ceil($channels["cant"] / $max_records); -$gBitSmarty->assign_by_ref('cant_pages', $cant_pages); +$gBitSmarty->assignByRef('cant_pages', $cant_pages); $gBitSmarty->assign('actual_page', 1 + ($offset / $max_records)); if ($channels["cant"] > ($offset + $max_records)) { $gBitSmarty->assign('next_offset', $offset + $max_records); @@ -73,7 +73,7 @@ if ($offset > 0) { } else { $gBitSmarty->assign('prev_offset', -1); } -$gBitSmarty->assign_by_ref('channels', $channels["data"]); +$gBitSmarty->assignByRef('channels', $channels["data"]); // Display the template $gBitSystem->display( 'bitpackage:wiki/admin_external_wikis.tpl', NULL, array( 'display_mode' => 'admin' )); diff --git a/backlinks.php b/backlinks.php index 7991f2e..3c01f90 100644 --- a/backlinks.php +++ b/backlinks.php @@ -23,7 +23,7 @@ if (!isset($_REQUEST["page"])) { $gBitSystem->fatalError(tra("No page indicated")); } else { $page = $_REQUEST["page"]; - $gBitSmarty->assign_by_ref('page', $_REQUEST["page"]); + $gBitSmarty->assignByRef('page', $_REQUEST["page"]); } // Now check permissions to access this page @@ -35,7 +35,7 @@ if( !$gContent->pageExists( $page )) { } // Get the backlinks for the page "page" $backlinks = $gContent->getBacklinks(); -$gBitSmarty->assign_by_ref('backlinks', $backlinks); +$gBitSmarty->assignByRef('backlinks', $backlinks); // Display the template $gBitSystem->display( 'bitpackage:wiki/backlinks.tpl', NULL, array( 'display_mode' => 'display' )); diff --git a/book_to_html.php b/book_to_html.php index cad360d..203be49 100644 --- a/book_to_html.php +++ b/book_to_html.php @@ -63,7 +63,7 @@ if( !$gBitUser->isAdmin() ) { } $struct_info = $structlib->s_get_structure_info($_REQUEST['struct']); -$gBitSmarty->assign_by_ref('struct_info',$struct_info); +$gBitSmarty->assignByRef('struct_info',$struct_info); $gBitSmarty->assign('generated','y'); if(isset($_REQUEST['create'])) { @@ -27,7 +27,7 @@ $listHash['content_type_guid'] = BITBOOK_CONTENT_TYPE_GUID; $channels = $book->getList( $listHash ); $cant_pages = ceil($channels["cant"] / $listHash['max_records']); -$gBitSmarty->assign_by_ref('cant_pages', $cant_pages); +$gBitSmarty->assignByRef('cant_pages', $cant_pages); $gBitSmarty->assign('actual_page', 1 + ($listHash['offset'] / $listHash['max_records'])); if ($channels["cant"] > ($listHash['offset'] + $listHash['max_records'])) { @@ -43,7 +43,7 @@ if ($listHash['offset'] > 0) { $gBitSmarty->assign('prev_offset', -1); } -$gBitSmarty->assign_by_ref('channels', $channels["data"]); +$gBitSmarty->assignByRef('channels', $channels["data"]); $gBitSystem->display( 'bitpackage:wiki/list_books.tpl', NULL, array( 'display_mode' => 'display' )); diff --git a/display_bitpage_inc.php b/display_bitpage_inc.php index f25ab51..18bb07b 100644 --- a/display_bitpage_inc.php +++ b/display_bitpage_inc.php @@ -35,7 +35,7 @@ if( $gBitSystem->isFeatureActive( 'wiki_creator_admin' ) && $gContent->isOwner() // doesn't seem to be used - xing - Tuesday Oct 07, 2008 17:52:42 CEST //if( isset( $_REQUEST["copyrightpage"] )) { -// $gBitSmarty->assign_by_ref( 'copyrightpage', $_REQUEST["copyrightpage"] ); +// $gBitSmarty->assignByRef( 'copyrightpage', $_REQUEST["copyrightpage"] ); //} // Get the backlinks for the page "page" @@ -151,11 +151,11 @@ if( $gContent->isValid() && $gBitSystem->isPackageActive( 'stickies' ) ) { global $gNote; $gNote = new BitSticky( NULL, NULL, $gContent->mContentId ); $gNote->load(); - $gBitSmarty->assign_by_ref( 'stickyInfo', $gNote->mInfo ); + $gBitSmarty->assignByRef( 'stickyInfo', $gNote->mInfo ); } // Display the Index Template -$gBitSmarty->assign_by_ref( 'pageInfo', $gContent->mInfo ); +$gBitSmarty->assignByRef( 'pageInfo', $gContent->mInfo ); // S5 slideshows if( isset( $_REQUEST['s5'] )) { @@ -238,11 +238,11 @@ if( empty( $formInfo ) ) { // make original page title available for template $formInfo['original_title'] =( !empty( $gContent->mInfo['title'] ) ) ? $gContent->mInfo['title'] : "" ; -$gBitSmarty->assign_by_ref( 'pageInfo', $formInfo ); -$gBitSmarty->assign_by_ref( 'errors', $gContent->mErrors ); +$gBitSmarty->assignByRef( 'pageInfo', $formInfo ); +$gBitSmarty->assignByRef( 'errors', $gContent->mErrors ); if( $gBitSystem->isPackageActive( 'ckeditor' ) ) { - loadCkEditor(); +// loadCkEditor(); } $gBitSystem->display( 'bitpackage:wiki/edit_page.tpl', 'Edit: '.$gContent->getTitle() , array( 'display_mode' => 'edit' )); diff --git a/edit_book.php b/edit_book.php index 44b197b..3257ca0 100644 --- a/edit_book.php +++ b/edit_book.php @@ -127,7 +127,7 @@ if( isset($_REQUEST["createstructure"]) ) { } header( "location: ".WIKI_PKG_URL."edit_book.php?structure_id=".$structure_id ); } else { - $gBitSmarty->assign_by_ref( 'errors', $gContent->mErrors ); + $gBitSmarty->assignByRef( 'errors', $gContent->mErrors ); $gBitSmarty->assign( 'name', $_REQUEST['name']); $gBitSmarty->assign( 'chapters', $_REQUEST['chapters']); $mid = 'bitpackage:wiki/create_book.tpl'; diff --git a/like_pages.php b/like_pages.php index 60e61dd..d23c719 100644 --- a/like_pages.php +++ b/like_pages.php @@ -26,7 +26,7 @@ if( !$gContent->isValid() ) { } $likepages = $gContent->getLikePages( $gContent->mInfo['title'] ); -$gBitSmarty->assign_by_ref( 'likepages', $likepages ); +$gBitSmarty->assignByRef( 'likepages', $likepages ); // Display the template $gBitSystem->display( 'bitpackage:wiki/like_pages.tpl', NULL, array( 'display_mode' => 'display' )); diff --git a/list_pages.php b/list_pages.php index 7107a33..be8ef91 100644 --- a/list_pages.php +++ b/list_pages.php @@ -57,12 +57,12 @@ if( isset( $_REQUEST["batch_submit"] ) && isset( $_REQUEST["checked"] ) && $_REQ } } if( !empty( $errors )) { - $gBitSmarty->assign_by_ref( 'errors', $errors ); + $gBitSmarty->assignByRef( 'errors', $errors ); } } } -$gBitSmarty->assign_by_ref( "gContent", $gContent ); +$gBitSmarty->assignByRef( "gContent", $gContent ); if( !empty( $_REQUEST['sort_mode'] )) { $listHash['sort_mode'] = preg_replace( '/^user_/', 'creator_user_', $_REQUEST['sort_mode'] ); @@ -77,8 +77,8 @@ $listHash['listInfo']['parameters']['find_author'] = !empty( $listHash['fin $listHash['listInfo']['parameters']['find_last_editor'] = !empty( $listHash['find_last_editor'] ) ? $listHash['find_last_editor'] : ''; $listHash['listInfo']['ihash']['content_type_guid'] = BITPAGE_CONTENT_TYPE_GUID; -$gBitSmarty->assign_by_ref( 'listpages', $listpages ); -$gBitSmarty->assign_by_ref( 'listInfo', $listHash['listInfo'] ); +$gBitSmarty->assignByRef( 'listpages', $listpages ); +$gBitSmarty->assignByRef( 'listInfo', $listHash['listInfo'] ); // Display the template $gBitSystem->display( 'bitpackage:wiki/list_pages.tpl', tra( 'Wiki Pages' ), array( 'display_mode' => 'list' )); diff --git a/lookup_page_inc.php b/lookup_page_inc.php index b2b548e..3de07ee 100644 --- a/lookup_page_inc.php +++ b/lookup_page_inc.php @@ -88,6 +88,6 @@ if( $gContent->isValid() && empty( $gStructure ) ) { } } -$gBitSmarty->clear_assign( 'gContent' ); -$gBitSmarty->assign_by_ref( 'gContent', $gContent ); +$gBitSmarty->clearAssign( 'gContent' ); +$gBitSmarty->assignByRef( 'gContent', $gContent ); ?> diff --git a/orphan_pages.php b/orphan_pages.php index b8628b8..682c85f 100644 --- a/orphan_pages.php +++ b/orphan_pages.php @@ -57,13 +57,13 @@ if( isset( $_REQUEST["batch_submit"] ) && isset( $_REQUEST["checked"] ) && $_REQ } } if( !empty( $errors )) { - $gBitSmarty->assign_by_ref( 'errors', $errors ); + $gBitSmarty->assignByRef( 'errors', $errors ); } } } $gContent = new BitPage(); -$gBitSmarty->assign_by_ref( "gContent", $gContent ); +$gBitSmarty->assignByRef( "gContent", $gContent ); if( !empty( $_REQUEST['sort_mode'] )) { $listHash['sort_mode'] = preg_replace( '/^user_/', 'creator_user_', $_REQUEST['sort_mode'] ); @@ -78,8 +78,8 @@ $listHash['listInfo']['parameters']['find_title'] = !empty( $listHash['fin $listHash['listInfo']['parameters']['find_author'] = !empty( $listHash['find_author'] ) ? $listHash['find_author'] : ''; $listHash['listInfo']['parameters']['find_last_editor'] = !empty( $listHash['find_last_editor'] ) ? $listHash['find_last_editor'] : ''; -$gBitSmarty->assign_by_ref( 'listpages', $listpages ); -$gBitSmarty->assign_by_ref( 'listInfo', $listHash['listInfo'] ); +$gBitSmarty->assignByRef( 'listpages', $listpages ); +$gBitSmarty->assignByRef( 'listInfo', $listHash['listInfo'] ); // Display the template $gBitSystem->display( 'bitpackage:wiki/orphan_pages.tpl', tra( 'Orphan Pages' ), array( 'display_mode' => 'list' )); diff --git a/page_history.php b/page_history.php index 2ebd726..ebd3063 100644 --- a/page_history.php +++ b/page_history.php @@ -30,7 +30,7 @@ if( !$gContent->isValid() || empty( $gContent->mInfo ) ) { $gContent->verifyViewPermission(); $gContent->verifyUserPermission( 'p_wiki_view_history' ); -$gBitSmarty->assign_by_ref( 'pageInfo', $gContent->mInfo ); +$gBitSmarty->assignByRef( 'pageInfo', $gContent->mInfo ); if (!empty( $_REQUEST['rollback_preview'] )) { $gBitSmarty->assign( 'rollback_preview', $_REQUEST['rollback_preview']); @@ -49,10 +49,10 @@ if( !empty( $_REQUEST['list_page'] )) { $offset = ( $page - 1 ) * $gBitSystem->getConfig( 'max_records' ); $history = $gContent->getHistory( NULL, NULL, $offset, $gBitSystem->getConfig( 'max_records' ) ); -$gBitSmarty->assign_by_ref( 'data', $history['data'] ); -$gBitSmarty->assign_by_ref( 'listInfo', $history['listInfo'] ); +$gBitSmarty->assignByRef( 'data', $history['data'] ); +$gBitSmarty->assignByRef( 'listInfo', $history['listInfo'] ); // Display the template -$gBitSmarty->assign_by_ref( 'gContent', $gContent ); +$gBitSmarty->assignByRef( 'gContent', $gContent ); $gBitSystem->display( 'bitpackage:wiki/page_history.tpl' , NULL, array( 'display_mode' => 'display' )); ?> diff --git a/page_loader.php b/page_loader.php index 7335970..d15060b 100644 --- a/page_loader.php +++ b/page_loader.php @@ -19,7 +19,7 @@ $refresh = 1000 * $_REQUEST["refresh"]; ?> <html> <head> - <script language = 'Javascript' type = 'text/javascript'> + <script type = 'text/javascript'> <?php $zones = $htmlpageslib->list_html_page_content($_REQUEST["title"], 0, -1, 'zone_asc', ''); $cmds = array(); diff --git a/page_watches.php b/page_watches.php index 6125b4c..485bf88 100644 --- a/page_watches.php +++ b/page_watches.php @@ -40,8 +40,8 @@ if( !empty( $gContent->mPageId ) ) { $event = 'wiki_page_changed'; $watches = $gBitUser->get_event_watches($event, $gContent->mPageId); - $gBitSmarty->assign_by_ref('watches', $watches); - $gBitSmarty->assign_by_ref( 'pageInfo', $gContent->mInfo ); + $gBitSmarty->assignByRef('watches', $watches); + $gBitSmarty->assignByRef( 'pageInfo', $gContent->mInfo ); } // Display the template diff --git a/print_multi_pages.php b/print_multi_pages.php index 7aab2ee..acd4063 100644 --- a/print_multi_pages.php +++ b/print_multi_pages.php @@ -37,7 +37,7 @@ if (isset($_REQUEST["print"])) { } } } -$gBitSmarty->assign_by_ref('pages', $pages); +$gBitSmarty->assignByRef('pages', $pages); // Display the template $gBitSmarty->display("bitpackage:wiki/print_multi_pages.tpl"); diff --git a/print_pages.php b/print_pages.php index 9f60676..4c27d5b 100644 --- a/print_pages.php +++ b/print_pages.php @@ -49,7 +49,7 @@ $listHash = array( 'find' => $find, ); $pages = $gContent->getList( $listHash ); -$gBitSmarty->assign_by_ref('pages', $pages); +$gBitSmarty->assignByRef('pages', $pages); // Display the template $gBitSystem->display( 'bitpackage:wiki/print_pages.tpl', NULL, array( 'display_mode' => 'display' )); diff --git a/sitemap.php b/sitemap.php index 8df73fb..0256774 100644 --- a/sitemap.php +++ b/sitemap.php @@ -56,6 +56,6 @@ function process_book_list( $pList, $pDepth = 1 ) { } } -$gBitSmarty->assign_by_ref( 'gSiteMapHash', $gSiteMapHash ); +$gBitSmarty->assignByRef( 'gSiteMapHash', $gSiteMapHash ); $gBitThemes->setFormatHeader( 'xml' ); print $gBitSmarty->display( 'bitpackage:kernel/sitemap.tpl' ); diff --git a/slideshow.php b/slideshow.php index deac9b6..d403b9b 100755 --- a/slideshow.php +++ b/slideshow.php @@ -97,13 +97,13 @@ $current_slide = $_REQUEST["slide"] + 1; $gBitSmarty->assign('total_slides', $total_slides); $gBitSmarty->assign('current_slide', $current_slide); -//$gBitSmarty->assign_by_ref('last_modified',date("l d of F, Y [H:i:s]",$info["last_modified"])); -$gBitSmarty->assign_by_ref('last_modified', $info["last_modified"]); +//$gBitSmarty->assignByRef('last_modified',date("l d of F, Y [H:i:s]",$info["last_modified"])); +$gBitSmarty->assignByRef('last_modified', $info["last_modified"]); if (empty($info["user"])) { $info["user"] = 'anonymous'; } -$gBitSmarty->assign_by_ref('lastUser', $info["user"]); +$gBitSmarty->assignByRef('lastUser', $info["user"]); $gBitSmarty->display("bitpackage:wiki/slideshow.tpl"); ?> |
