Skip to Content Skip to Menu

[SOLVED] language vars in php

10 years 8 months ago - 10 years 8 months ago #240810 by thewebsurfer
Replied by thewebsurfer on topic [SOLVED] language vars in php
i included this
Code:
global $_CB_framework, $mainframe; if ( defined( 'JPATH_ADMINISTRATOR' ) ) { if ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) { echo 'CB not installed!'; return; } include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ); } else { if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) { echo 'CB not installed!'; return; } include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ); }

i didnt include
cbimport( 'language.front' );

but it seems works anyway
Last edit: 10 years 8 months ago by thewebsurfer.

Please Log in or Create an account to join the conversation.

10 years 8 months ago - 10 years 8 months ago #240839 by thewebsurfer
Replied by thewebsurfer on topic [SOLVED] language vars in php
edit: ok imporitng cbimport( 'language.front' );
works
Last edit: 10 years 8 months ago by thewebsurfer.
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum