mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
minor typos and a corrected staticUrl for the clientside scripts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user