메시지 시스템에 9자 닉네임 적용

This commit is contained in:
2018-06-04 01:03:05 +09:00
parent f9d90c38ef
commit 7367eb1c45
8 changed files with 55 additions and 18 deletions
+5 -5
View File
@@ -77,11 +77,11 @@ function allButton() {
$call = "설문조사";
}
if(\file_exists("d_setting/templates/allButton.php")){
$templates = new \League\Plates\Engine('d_setting/templates');
if(\file_exists(__dir__."/d_setting/templates/allButton.php")){
$templates = new \League\Plates\Engine(__dir__.'/d_setting/templates');
}
else{
$templates = new \League\Plates\Engine('templates');
$templates = new \League\Plates\Engine(__dir__.'/templates');
}
@@ -113,7 +113,7 @@ function commandButton() {
$bgColor = Util::array_get($nation['color'])?:'#000000';
$fgColor = newColor($bgColor);
$templates = new \League\Plates\Engine('templates');
$templates = new \League\Plates\Engine(__dir__.'/templates');
$showSecret = false;
if($me['level'] >= 2){
$showSecret = true;
@@ -170,7 +170,7 @@ function formatName(string $name, int $npc): string{
function getMapHtml(){
//NOTE: 필요한가?
$templates = new \League\Plates\Engine('templates');
$templates = new \League\Plates\Engine(__dir__.'/templates');
return $templates->render('map');
}