diff --git a/index.php b/index.php index 612a420677..f3188f601c 100755 --- a/index.php +++ b/index.php @@ -34,13 +34,10 @@ $phpgw->common->read_preferences($phpgw_info["user"]["userid"],"email",True); $phpgw->common->read_preferences($phpgw_info["user"]["userid"],"calendar",True); - if ($phpgw_info["user"]["apps"]["admin"]) { - if ($phpgw_info["server"]["version"] > $phpgw_info["server"]["phpgroupware_api_version"]) { - echo "

" . lang("Your are running a newer version of phpGroupWare then your database is setup for") - . "
" . lang("It is recommend that you run setup to upgrade your tables to the current version") - . "
"; - - } + if ($phpgw_info["server"]["version"] > $phpgw_info["server"]["phpgroupware_api_version"]) { + echo "

" . lang("Your are running a newer version of phpGroupWare then your database is setup for") + . "
" . lang("It is recommend that you run setup to upgrade your tables to the current version") + . "
"; } if ($phpgw_info["user"]["apps"]["admin"] && $phpgw_info["server"]["checkfornewversion"]) { diff --git a/setup/default_records.inc.php b/setup/default_records.inc.php index c58696a92a..e83affef7c 100644 --- a/setup/default_records.inc.php +++ b/setup/default_records.inc.php @@ -110,6 +110,7 @@ $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('nntp', 'NNTP', 1, 11, 'newsgroups', '".$phpgw_info["server"]["version"]."')"); $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('cron_apps', 'cron_apps', 0, 0, NULL, '".$phpgw_info["server"]["version"]."')"); $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info["server"]["version"]."')"); + $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["version"]."')"); $db->query("insert into accounts (account_lid,account_pwd,account_firstname,account_lastname,account_permissions,account_groups,account_status) values ('demo','81dc9bdb52d04dc20036dbd8313ed055','Demo','Account',':admin:email:todo:addressbook:calendar:',',1,','A')"); diff --git a/setup/upgradetables_mysql.inc.php b/setup/upgradetables_mysql.inc.php index afead754d5..fecc88c5f4 100644 --- a/setup/upgradetables_mysql.inc.php +++ b/setup/upgradetables_mysql.inc.php @@ -317,6 +317,7 @@ if ($currentver == "0.9.3pre6") { $db->query("alter table addressbook add ab_url varchar(255)"); + $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["version"]."')"); $currentver = "0.9.3pre7"; update_version_table(); } diff --git a/setup/upgradetables_pgsql.inc.php b/setup/upgradetables_pgsql.inc.php index 3ca9b16795..cd33126357 100644 --- a/setup/upgradetables_pgsql.inc.php +++ b/setup/upgradetables_pgsql.inc.php @@ -305,6 +305,7 @@ if ($currentver == "0.9.3pre6") { $db->query("alter table addressbook add ab_url varchar(255)"); + $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["version"]."')"); $currentver = "0.9.3pre7"; }