minor typos and a corrected staticUrl for the clientside scripts

This commit is contained in:
Sarjuuk
2013-03-08 15:59:31 +01:00
parent 0c0a7ec5e2
commit 74df6f77ef
4 changed files with 14 additions and 13 deletions

View File

@@ -930,7 +930,7 @@ class SpellList extends BaseType
$pos += strlen($result[0]);
$resolved = $this->resolveVariableString($result, $level);
$str .= intVal($resolved) ? abs($resolved) : resolved;
$str .= intVal($resolved) ? abs($resolved) : $resolved;
}
$str .= substr($data, $pos);
$str = str_replace('#', '$', $str); // reset marks

View File

@@ -56,6 +56,7 @@ class Smarty_AoWoW extends Smarty
'type' => null, // [int] numCode for spell, npx, object, ect
'typeId' => null, // [int] entry to display
'path' => '[]', // [string] (js:array) path to preselect in the menu
'gStaticUrl' => substr('http://'.$_SERVER['SERVER_NAME'].strtr($_SERVER['SCRIPT_NAME'], ['index.php' => '']), 0, -1)
);
}

View File

@@ -915,10 +915,10 @@ class Util
);
public static $bgImagePath = array (
'tiny' => 'style="background-image: url(/images/icons/tiny/%s.gif)"',
'small' => 'style="background-image: url(/images/icons/small/%s.jpg)"',
'medium' => 'style="background-image: url(/images/icons/medium/%s.jpg)"',
'large' => 'style="background-image: url(/images/icons/large/%s.jpg)"',
'tiny' => 'style="background-image: url(images/icons/tiny/%s.gif)"',
'small' => 'style="background-image: url(images/icons/small/%s.jpg)"',
'medium' => 'style="background-image: url(images/icons/medium/%s.jpg)"',
'large' => 'style="background-image: url(images/icons/large/%s.jpg)"',
);
private static $execTime = 0.0;

View File

@@ -19,7 +19,7 @@
{/foreach}
<script type="text/javascript">
var g_serverTime = new Date('{$smarty.now|date_format:"%Y/%m/%d %H:%M:%S"}');
var g_staticUrl = "http://{php}echo $_SERVER['SERVER_NAME'];{/php}";
var g_staticUrl = "{$page.gStaticUrl}";
</script>
<script src="template/js/basic.js?{$AOWOW_REVISION}" type="text/javascript"></script>
<script src="power/aowowPower.js?lang={$user.language|substr:2}" type="text/javascript"></script>