Subversion Repositories oidplus

Rev

Rev 1041 | Rev 1060 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1041 Rev 1050
Line 15... Line 15...
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
17
 * limitations under the License.
18
 */
18
 */
19
 
19
 
-
 
20
use ViaThinkSoft\OIDplus\OIDplus;
-
 
21
use ViaThinkSoft\OIDplus\OIDplusLanguagePlugin;
20
use MatthiasMullie\Minify;
22
use MatthiasMullie\Minify;
21
 
23
 
22
require_once __DIR__ . '/includes/oidplus.inc.php';
24
require_once __DIR__ . '/includes/oidplus.inc.php';
23
 
25
 
24
error_reporting(OIDplus::baseConfig()->getValue('DEBUG') ? E_ALL : 0);
26
error_reporting(OIDplus::baseConfig()->getValue('DEBUG') ? E_ALL : 0);
Line 57... Line 59...
57
 
59
 
58
# ---
60
# ---
59
 
61
 
60
$files[] = 'var DEFAULT_LANGUAGE = '.json_encode(OIDplus::getDefaultLang()).';';
62
$files[] = 'var DEFAULT_LANGUAGE = '.json_encode(OIDplus::getDefaultLang()).';';
61
 
63
 
62
OIDplus::registerAllPlugins('language', 'OIDplusLanguagePlugin', null);
64
OIDplus::registerAllPlugins('language', OIDplusLanguagePlugin::class, null);
63
$translation_array = OIDplus::getTranslationArray();
65
$translation_array = OIDplus::getTranslationArray();
64
$files[] = 'var language_messages = '.json_encode($translation_array).';';
66
$files[] = 'var language_messages = '.json_encode($translation_array).';';
65
 
67
 
66
//$tbl_prefix = OIDplus::baseConfig()->getValue('TABLENAME_PREFIX','');
68
//$tbl_prefix = OIDplus::baseConfig()->getValue('TABLENAME_PREFIX','');
67
//$files[] = 'var language_tblprefix = '.json_encode($tbl_prefix).';';
69
//$files[] = 'var language_tblprefix = '.json_encode($tbl_prefix).';';