diff --git a/lib/upgrade_functions.php b/lib/upgrade_functions.php index ae0015812..19424c1ba 100644 --- a/lib/upgrade_functions.php +++ b/lib/upgrade_functions.php @@ -242,10 +242,15 @@ function upgradeDatabaseVersion5(&$db) $db->execute("DELETE FROM VERSION WHERE ID=4"); $db->execute("INSERT INTO VERSION VALUES (5)"); - $default_bot_txt_path = LOCALE_DIR."/".DEFAULT_LOCALE."/pages/bot.thtml"; + $static_page_path = LOCALE_DIR."/".DEFAULT_LOCALE."/pages"; + if(!file_exist($static_page_path)) { + mkdir($static_page_path); + } + $default_bot_txt_path = "$static_page_path/pages/bot.thtml"; $old__bot_txt_path = WORK_DIRECTORY."/bot.txt"; if(file_exists($old__bot_txt_path) && ! file_exists($default_bot_txt_path)){ rename($old__bot_txt_path, $default_bot_txt_path); } + $this->db->setWorldPermissionsRecursive($static_page_path); } ?> diff --git a/locale/ar/pages/bot.thtml b/locale/ar/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/de/pages/bot.thtml b/locale/de/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/es/pages/bot.thtml b/locale/es/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/fr-FR/pages/bot.thtml b/locale/fr-FR/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/he/pages/bot.thtml b/locale/he/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/hi/pages/bot.thtml b/locale/hi/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/in-ID/pages/bot.thtml b/locale/in-ID/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/it/pages/bot.thtml b/locale/it/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/ja/pages/bot.thtml b/locale/ja/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/kn/pages/bot.thtml b/locale/kn/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/ko/pages/bot.thtml b/locale/ko/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/pl/pages/bot.thtml b/locale/pl/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/pt/pages/bot.thtml b/locale/pt/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/ru/pages/bot.thtml b/locale/ru/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/th/pages/bot.thtml b/locale/th/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/vi-VN/pages/bot.thtml b/locale/vi-VN/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb diff --git a/locale/zh-CN/pages/bot.thtml b/locale/zh-CN/pages/bot.thtml new file mode 100755 index 000000000..e69de29bb