lang detection lib moved to compozer
This commit is contained in:
parent
68d563fa57
commit
33ae19aed2
|
@ -7,6 +7,8 @@
|
||||||
* License: GPL 2.0
|
* License: GPL 2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Friendica\Core\PConfig;
|
||||||
|
|
||||||
function typography_install () {
|
function typography_install () {
|
||||||
register_hook ('prepare_body', 'addon/typography/typography.php', 'typography_render' );
|
register_hook ('prepare_body', 'addon/typography/typography.php', 'typography_render' );
|
||||||
}
|
}
|
||||||
|
@ -15,7 +17,6 @@ function typography_uninstall () {
|
||||||
}
|
}
|
||||||
function typography_render ( &$a, &$o) {
|
function typography_render ( &$a, &$o) {
|
||||||
require_once('php-typography/php-typography.php');
|
require_once('php-typography/php-typography.php');
|
||||||
require_once('library/langdet/Text/LanguageDetect.php');
|
|
||||||
$typo = new phpTypography();
|
$typo = new phpTypography();
|
||||||
$lng_id = array(
|
$lng_id = array(
|
||||||
'hu',
|
'hu',
|
||||||
|
|
Loading…
Reference in New Issue