[FINAL] Disable language selection

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
Niels Chr. Denmark
Registered User
Posts: 1320
Joined: Thu Jan 10, 2002 1:00 pm
Contact:

[FINAL] Disable language selection

Post by Niels Chr. Denmark »

One of my members have ask me how to disable "language selection"
if there are only one language installed

here are how to do:
in file include/funtions_select.php

Code: Select all

[FIND]
global $phpEx;
$dir = opendir($dirname);

[REPLACE WITH
global $phpEx,$board_config;
return strtoupper($board_config['default_lang']);
$dir = opendir($dirname);
This will permanently disable language select, in any mod - now and in the future, that uses "the rigth way" when dealling with languages

Locked

Return to “[2.0.x] MODs in Development”