Subversion Repositories wimsdev

Rev

Rev 10 | Rev 8084 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 3718
Line 273... Line 273...
273
        snprintf(buf,sizeof(buf),"%s",p3);
273
        snprintf(buf,sizeof(buf),"%s",p3);
274
        _getopt("language",buf);
274
        _getopt("language",buf);
275
        if(buf[0]) snprintf(lbuf,sizeof(lbuf),"%2s",buf);
275
        if(buf[0]) snprintf(lbuf,sizeof(lbuf),"%2s",buf);
276
    }
276
    }
277
    lbuf[2]=0;
277
    lbuf[2]=0;
278
    if(!myisalpha(lbuf[0]) || !myisalpha(lbuf[1])) strcpy(lbuf,"en");
278
    if(!myisalpha(lbuf[0]) || !myisalpha(lbuf[1])) ovlstrcpy(lbuf,"en");
279
    styledir[0]=defbuf[0]=optionbuf[0]=buf[0]=0;
279
    styledir[0]=defbuf[0]=optionbuf[0]=buf[0]=0;
280
    if(*style) {
280
    if(*style) {
281
        p=getenv("module_dir");
281
        p=getenv("module_dir");
282
        if(p==NULL) {                   /* non-wims operation */
282
        if(p==NULL) {                   /* non-wims operation */
283
            snprintf(styledir,sizeof(styledir),"%s",style);
283
            snprintf(styledir,sizeof(styledir),"%s",style);