monisetup.php 1.1.3 버그

Q2. 모니위키를 서버에 올려놓고 (설치 주소)/monisetup.php로 접속하려하면 다음과 같은 에러메시지가 출력된다.

Fatal error: Call to undefined function: bindtextdomain() in /web/home/icehit3/html/moniwiki/monisetup.php on line 678
A2. moniwiki 1.1.3의 버그이다. 다음과 같이 monisetup.php의 일부분을 수정해야 한다.
// 수정 전 php code
return $lang;
}

function initlocale($lang,$charset) {
global $_Config,$_locale,$locale;
if (!@include_once('locale/'.$lang.'/LC_MESSAGES/moniwiki.php') or
@include_once('locale/'.substr($lang,0,2).'/LC_MESSAGES/moniwiki.php')) {
if (!empty($_locale)) {
function _t($text) {


// 수정 후 php code
return $lang;
}

$_locale = array();

function initlocale($lang,$charset) {
global $_Config,$_locale,$locale;
if (!@include_once('locale/'.$lang.'/LC_MESSAGES/moniwiki.php') and
@include_once('locale/'.substr($lang,0,2).'/LC_MESSAGES/moniwiki.php')) {
if (!empty($_locale)) {
function _t($text) {
Retrieved from http://memorecycle.com/w/모니위키/1.1.3
last modified 2016-03-04 23:10:10