Skip to content

Commit

Permalink
smr.inc: remove references in function arguments
Browse files Browse the repository at this point in the history
See smrealms#317.

Also fix spelling of `doSkeletonAssigns`.
  • Loading branch information
hemberger committed Apr 3, 2018
1 parent bf430a2 commit 70d8bd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Default/smr.inc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function bbifyMessage($message, $noLinks=false) {
return $message;
}

function enableProtectionDependantRefresh(&$template,&$player) {
function enableProtectionDependantRefresh($template, $player) {
$ajaxRefresh = AJAX_UNPROTECTED_REFRESH_TIME;
if ($player->hasNewbieTurns()||$player->isLandedOnPlanet()||$player->hasFederalProtection())
$ajaxRefresh=AJAX_DEFAULT_REFRESH_TIME;
Expand Down Expand Up @@ -649,7 +649,7 @@ function do_voodoo() {
if($account->getCssLink()!=null) {
$template->assign('ExtraCSSLink',$account->getCssLink());
}
doSkeletionAssigns($template,$player,$ship,$sector,$db,$account);
doSkeletonAssigns($template,$player,$ship,$sector,$db,$account);

if(isset($var['DisableAjax']) && $var['DisableAjax']===true) {
$template->assign('AJAX_ENABLE_REFRESH',false);
Expand Down Expand Up @@ -716,7 +716,7 @@ function release_lock() {
$lock = false;
}

function doTickerAssigns(&$template,&$player,&$db) {
function doTickerAssigns($template, $player, $db) {
//any ticker news?
if($player->hasTickers()) {
$ticker = array();
Expand Down Expand Up @@ -749,7 +749,7 @@ function doTickerAssigns(&$template,&$player,&$db) {
}
}

function doSkeletionAssigns(&$template,&$player,&$ship,&$sector,&$db,&$account) {
function doSkeletonAssigns($template, $player, $ship, $sector, $db, $account) {
$template->assign('CSSLink', $account->getCssUrl());
$template->assign('CSSColourLink', $account->getCssColourUrl());

Expand Down

0 comments on commit 70d8bd7

Please sign in to comment.