summaryrefslogtreecommitdiff
path: root/preferences.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2016-02-07 17:47:25 +0000
committerlsces <lester@lsces.co.uk>2016-02-07 17:47:25 +0000
commitb434b0b967ec81d9612d99dbbb5ff43a8a9ca7cb (patch)
tree22a476888bfe85a7b608c4550aff0e634f2ed36d /preferences.php
parent989bcff1ef63dc647972682f8ab6cda9932855ed (diff)
downloadusers-b434b0b967ec81d9612d99dbbb5ff43a8a9ca7cb.tar.gz
users-b434b0b967ec81d9612d99dbbb5ff43a8a9ca7cb.tar.bz2
users-b434b0b967ec81d9612d99dbbb5ff43a8a9ca7cb.zip
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'preferences.php')
-rw-r--r--preferences.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/preferences.php b/preferences.php
index 77b2dd6..7a73344 100644
--- a/preferences.php
+++ b/preferences.php
@@ -76,7 +76,7 @@ if( $gBitSystem->getConfig( 'users_themes' ) == 'y' ) {
$assignStyle = $_REQUEST["style"];
}
$styles = $gBitThemes->getStyles( NULL, TRUE, TRUE );
- $gBitSmarty->assign_by_ref( 'styles', $styles );
+ $gBitSmarty->assignByRef( 'styles', $styles );
if( !isset( $_REQUEST["style"] )) {
$assignStyle = $editUser->getPreference( 'theme' );
@@ -220,7 +220,7 @@ if( isset( $_REQUEST['tasksprefs'] )) {
// get available languages
$languages = array();
$languages = $gBitLanguage->listLanguages();
-$gBitSmarty->assign_by_ref( 'languages', $languages );
+$gBitSmarty->assignByRef( 'languages', $languages );
// Get flags
$flags = array();
@@ -252,14 +252,14 @@ $gBitSmarty->assign( 'userTimezones', $user_timezones);
// email scrambling methods
$scramblingMethods = array( "n", "strtr", "unicode", "x" );
-$gBitSmarty->assign_by_ref( 'scramblingMethods', $scramblingMethods );
+$gBitSmarty->assignByRef( 'scramblingMethods', $scramblingMethods );
$scramblingEmails = array(
tra( "no" ),
scramble_email( $editUser->mInfo['email'], 'strtr' ),
scramble_email( $editUser->mInfo['email'], 'unicode' )."-".tra( "unicode" ),
scramble_email( $editUser->mInfo['email'], 'x' )
);
-$gBitSmarty->assign_by_ref( 'scramblingEmails', $scramblingEmails );
+$gBitSmarty->assignByRef( 'scramblingEmails', $scramblingEmails );
// edit services
$editUser->invokeServices( 'content_edit_function' );