diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 16:20:45 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 16:20:45 +0000 |
| commit | eebb75e491d192e9a13836d0fe19a4a0d6d110da (patch) | |
| tree | 9f54714d03778fb9241c1cc2d496ebb7d28aafff /admin | |
| parent | 7c9fbf19531c5c01cf6166d69aef5f9330cd578b (diff) | |
| download | kernel-eebb75e491d192e9a13836d0fe19a4a0d6d110da.tar.gz kernel-eebb75e491d192e9a13836d0fe19a4a0d6d110da.tar.bz2 kernel-eebb75e491d192e9a13836d0fe19a4a0d6d110da.zip | |
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/admin_notifications.php | 10 | ||||
| -rw-r--r-- | admin/admin_server_inc.php | 4 | ||||
| -rw-r--r-- | admin/backup.php | 2 | ||||
| -rw-r--r-- | admin/index.php | 4 | ||||
| -rw-r--r-- | admin/list_cache.php | 8 | ||||
| -rw-r--r-- | admin/sitemaps.php | 2 |
6 files changed, 15 insertions, 15 deletions
diff --git a/admin/admin_notifications.php b/admin/admin_notifications.php index 4e5c2ba..e310058 100644 --- a/admin/admin_notifications.php +++ b/admin/admin_notifications.php @@ -37,7 +37,7 @@ if (!isset($_REQUEST["offset"])) { $offset = $_REQUEST["offset"]; } -$gBitSmarty->assign_by_ref('offset', $offset); +$gBitSmarty->assignByRef('offset', $offset); if (isset($_REQUEST["find"])) { $find = $_REQUEST["find"]; @@ -47,11 +47,11 @@ if (isset($_REQUEST["find"])) { $gBitSmarty->assign('find', $find); -$gBitSmarty->assign_by_ref('sort_mode', $sort_mode); +$gBitSmarty->assignByRef('sort_mode', $sort_mode); $channels = $notificationlib->list_mail_events($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)) { @@ -67,9 +67,9 @@ if ($offset > 0) { $gBitSmarty->assign('prev_offset', -1); } -$gBitSmarty->assign_by_ref('channels', $channels["data"]); +$gBitSmarty->assignByRef('channels', $channels["data"]); -$gBitSmarty->assign_by_ref('events', $gBitSystem->mNotifyEvents); +$gBitSmarty->assignByRef('events', $gBitSystem->mNotifyEvents); $admin_mail=$admin_mail=$gBitUser->mInfo['email']; $cuser_mail=$gBitUser->mInfo['email']; $gBitSmarty->assign('admin_mail', $admin_mail); diff --git a/admin/admin_server_inc.php b/admin/admin_server_inc.php index a5b3db4..dfb588e 100644 --- a/admin/admin_server_inc.php +++ b/admin/admin_server_inc.php @@ -76,12 +76,12 @@ if( $processForm ) { // Special handling for site_temp_dir, which has a default value if( isset( $_REQUEST["site_temp_dir"] ) && $_REQUEST["site_temp_dir"] != TEMP_PKG_PATH ) { $gBitSystem->storeConfig( "site_temp_dir", $_REQUEST["site_temp_dir"], KERNEL_PKG_NAME ); - $gBitSmarty->assign_by_ref( "site_temp_dir", $_REQUEST["site_temp_dir"] ); + $gBitSmarty->assignByRef( "site_temp_dir", $_REQUEST["site_temp_dir"] ); } // Special handling for centralissed_upload_dir, which has a default value $centralDir = ( !empty( $_REQUEST["site_upload_dir"] ) ? $_REQUEST["site_upload_dir"] : NULL ); $gBitSystem->storeConfig( "site_upload_dir", $centralDir , KERNEL_PKG_NAME ); - $gBitSmarty->assign_by_ref( "site_upload_dir", $centralDir ); + $gBitSmarty->assignByRef( "site_upload_dir", $centralDir ); } ?> diff --git a/admin/backup.php b/admin/backup.php index d45a11f..4e6bd71 100644 --- a/admin/backup.php +++ b/admin/backup.php @@ -87,7 +87,7 @@ while ($file = readdir($h)) { } closedir ($h); -$gBitSmarty->assign_by_ref('backups', $backups); +$gBitSmarty->assignByRef('backups', $backups); $gBitSmarty->assign('bitdomain', $bitdomain); diff --git a/admin/index.php b/admin/index.php index dff9054..5b2534a 100644 --- a/admin/index.php +++ b/admin/index.php @@ -76,7 +76,7 @@ if( !empty( $_REQUEST["page"] )) { if( $gBitUser->hasPermission( 'p_'.$package.'_admin' ) ) { $lowerPackage = strtolower( $package ); $tpl = "bitpackage:$lowerPackage/menu_{$lowerPackage}_admin.tpl"; - if(( $gBitSystem->isPackageActive( $package ) || $lowerPackage == 'kernel' ) && @$gBitSmarty->template_exists( $tpl )) { + if(( $gBitSystem->isPackageActive( $package ) || $lowerPackage == 'kernel' ) && @$gBitSmarty->templateExists( $tpl )) { $adminTemplates[$package] = $tpl; } } @@ -84,7 +84,7 @@ if( !empty( $_REQUEST["page"] )) { if( !empty( $adminTemplates ) ) { $gBitSystem->setBrowserTitle( 'Administration' ); - $gBitSmarty->assign_by_ref( 'adminTemplates', $adminTemplates ); + $gBitSmarty->assignByRef( 'adminTemplates', $adminTemplates ); } else { $gBitSystem->verifyPermission( 'p_admin' ); } diff --git a/admin/list_cache.php b/admin/list_cache.php index 0efea48..7361662 100644 --- a/admin/list_cache.php +++ b/admin/list_cache.php @@ -29,7 +29,7 @@ if ( empty( $_REQUEST["sort_mode"] ) ) { $sort_mode = $_REQUEST["sort_mode"]; } -$gBitSmarty->assign_by_ref('sort_mode', $sort_mode); +$gBitSmarty->assignByRef('sort_mode', $sort_mode); // If offset is set use it if not then use offset =0 // use the max_records php variable to set the limit @@ -40,7 +40,7 @@ if (!isset($_REQUEST["offset"])) { $offset = $_REQUEST["offset"]; } -$gBitSmarty->assign_by_ref('offset', $offset); +$gBitSmarty->assignByRef('offset', $offset); if (!isset($_REQUEST["find"])) { $find = ''; @@ -55,7 +55,7 @@ $listpages = $gBitSystem->list_cache($offset, $max_records, $sort_mode, $find); // If there're more records then assign next_offset $cant_pages = ceil($listpages["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 ($listpages["cant"] > ($offset + $max_records)) { @@ -71,7 +71,7 @@ if ($offset > 0) { $gBitSmarty->assign('prev_offset', -1); } -$gBitSmarty->assign_by_ref('listpages', $listpages["data"]); +$gBitSmarty->assignByRef('listpages', $listpages["data"]); //print_r($listpages["data"]); diff --git a/admin/sitemaps.php b/admin/sitemaps.php index 850e59b..50750f5 100644 --- a/admin/sitemaps.php +++ b/admin/sitemaps.php @@ -26,7 +26,7 @@ foreach( $gBitSystem->mPackages as $packageName => $package ) { } } -$gBitSmarty->assign_by_ref( 'gSiteMapHash', $gSiteMapHash ); +$gBitSmarty->assignByRef( 'gSiteMapHash', $gSiteMapHash ); // Display the template $gBitSystem->display( 'bitpackage:kernel/admin_sitemaps.tpl', NULL, array( 'display_mode' => 'admin' )); |
