move lang directory from content to includes

This commit is contained in:
maxpozdeev 2022-07-10 17:57:36 +03:00
parent ed31e2eaff
commit 153536d6d4
40 changed files with 3 additions and 10 deletions

View file

@ -8,7 +8,7 @@ if ( !isset($argv) || !isset($argv[1]) ) {
}
$repo = $argv[1];
$dir = sys_get_temp_dir(). DIRECTORY_SEPARATOR. "mytinytodo.build"; #php 5.2.1
$dir = sys_get_temp_dir(). DIRECTORY_SEPARATOR. "mytinytodo.build";
$curdir = getcwd();
$zipfile = $curdir. DIRECTORY_SEPARATOR. 'mytinytodo-v@VERSION-@REV.zip';
$ver = 0;
@ -43,14 +43,8 @@ print "> Version is $ver\n";
rename('db/todolist.db.empty', 'db/todolist.db');
/*
$fh = fopen("./content/themes/default/index.php", 'a') or die("cant write index.php\n");
fwrite($fh, "\n<!-- $rev -->");
fclose($fh);
*/
unlink('./docker-config.php');
unlink('./content/lang/en-rtl.json');
unlink('./includes/lang/en-rtl.json');
unlink('./mtt-edit-settings.php');
/*

View file

@ -13,7 +13,7 @@
class Lang
{
protected static $instance;
protected static $langDir = MTTLANG;
protected static $langDir = MTTINC . 'lang/';
protected $code = 'en';
protected $default = 'en';
protected $strings;

View file

@ -12,7 +12,6 @@ if (version_compare(PHP_VERSION, '7.2.0') < 0) {
if(!defined('MTTPATH')) define('MTTPATH', dirname(__FILE__) .'/');
if(!defined('MTTINC')) define('MTTINC', MTTPATH. 'includes/');
if(!defined('MTTCONTENT')) define('MTTCONTENT', MTTPATH. 'content/');
if(!defined('MTTLANG')) define('MTTLANG', MTTCONTENT. 'lang/');
if(!defined('MTTTHEMES')) define('MTTTHEMES', MTTCONTENT. 'themes/');
if (getenv('MTT_ENABLE_DEBUG') == 'YES') {