YaWK  24.1
Yet another WebKit
messages.php
Go to the documentation of this file.
1 <?php
2 if (!isset($db) || (empty($db)))
3 {
4  include 'system/plugins/messages/classes/db.php';
5  $db = new \YAWK\db();
6 }
7 // check if language is set
8 if (!isset($language) || (!isset($lang)))
9 { // inject (add) language tags to core $lang array
10  $lang = \YAWK\language::inject(@$lang, "../system/plugins/gallery/language/");
11 }
12 
13 include 'system/plugins/messages/classes/messages.php';
14 $messages = new \YAWK\PLUGINS\MESSAGES\messages($db, "frontend");
15 echo $messages->init($db, $lang);
print $lang['FILEMAN_UPLOAD']
static inject(array $lang, string $pathToFile)
allow plugins to inject language tags to $lang array
Definition: language.php:439
$messages
Definition: messages.php:14