mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
move lang directory from content to includes
This commit is contained in:
parent
ed31e2eaff
commit
153536d6d4
40 changed files with 3 additions and 10 deletions
10
buildzip.php
10
buildzip.php
|
|
@ -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');
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue