From 6d4f233e92d3b82084c35adfab0743faab4ee384 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 4 Feb 2015 14:27:51 +0000 Subject: PHPDoc for globals --- admin_site_merge.php | 6 ++++++ admin_trees_export.php | 6 ++++++ admin_trees_manage.php | 6 ++++++ admin_trees_places.php | 6 ++++++ admin_trees_renumber.php | 6 ++++++ admin_users.php | 6 ++++++ autocomplete.php | 6 ++++++ calendar.php | 9 +++++++++ edit_interface.php | 6 ++++++ edituser.php | 6 ++++++ famlist.php | 6 ++++++ index.php | 6 ++++++ index_edit.php | 6 ++++++ indilist.php | 6 ++++++ login.php | 6 ++++++ mediafirewall.php | 6 ++++++ note.php | 6 ++++++ repo.php | 6 ++++++ source.php | 6 ++++++ 19 files changed, 117 insertions(+) diff --git a/admin_site_merge.php b/admin_site_merge.php index 55f3fb7825..99deb49dac 100644 --- a/admin_site_merge.php +++ b/admin_site_merge.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'admin_site_merge.php'); require './includes/session.php'; diff --git a/admin_trees_export.php b/admin_trees_export.php index 6ad4a22f4b..6773cc6d30 100644 --- a/admin_trees_export.php +++ b/admin_trees_export.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'admin_trees_export.php'); require './includes/session.php'; diff --git a/admin_trees_manage.php b/admin_trees_manage.php index dfedbfff3e..2eba7d976d 100644 --- a/admin_trees_manage.php +++ b/admin_trees_manage.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'admin_trees_manage.php'); require './includes/session.php'; diff --git a/admin_trees_places.php b/admin_trees_places.php index 39add7413f..f8fd70879e 100644 --- a/admin_trees_places.php +++ b/admin_trees_places.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'admin_trees_places.php'); require './includes/session.php'; diff --git a/admin_trees_renumber.php b/admin_trees_renumber.php index b3137074c1..ebf67c33e3 100644 --- a/admin_trees_renumber.php +++ b/admin_trees_renumber.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'admin_trees_renumber.php'); require './includes/session.php'; diff --git a/admin_users.php b/admin_users.php index 015e05aacf..d34648b147 100644 --- a/admin_users.php +++ b/admin_users.php @@ -19,6 +19,12 @@ namespace Webtrees; use PDO; use Zend_Session; +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'admin_users.php'); require './includes/session.php'; diff --git a/autocomplete.php b/autocomplete.php index cdf521d9b0..2a83aad832 100644 --- a/autocomplete.php +++ b/autocomplete.php @@ -18,6 +18,12 @@ namespace Webtrees; use Zend_Session; +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'autocomplete.php'); require './includes/session.php'; diff --git a/calendar.php b/calendar.php index b7bfc2ed1b..5f145f950b 100644 --- a/calendar.php +++ b/calendar.php @@ -16,9 +16,18 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'calendar.php'); require './includes/session.php'; +$WEEK_START = $WT_TREE::getPreference('WEEK_START'); +$CALENDAR_FORMAT = $WT_TREE::getPreference('CALENDAR_FORMAT'); + $controller = new PageController; $controller->setPageTitle(I18N::translate('Anniversary calendar')); $controller->pageHeader(); diff --git a/edit_interface.php b/edit_interface.php index bc46734e93..d78ea9c772 100644 --- a/edit_interface.php +++ b/edit_interface.php @@ -18,6 +18,12 @@ namespace Webtrees; use Zend_Session; +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'edit_interface.php'); require './includes/session.php'; diff --git a/edituser.php b/edituser.php index bdac459164..c06217615c 100644 --- a/edituser.php +++ b/edituser.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'edituser.php'); require './includes/session.php'; diff --git a/famlist.php b/famlist.php index ca3fe72f86..cb51022f5d 100644 --- a/famlist.php +++ b/famlist.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'famlist.php'); require './includes/session.php'; diff --git a/index.php b/index.php index 0bd94d9d17..cd29af72f5 100644 --- a/index.php +++ b/index.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'index.php'); require './includes/session.php'; diff --git a/index_edit.php b/index_edit.php index 288d4ae678..ce09dda6e0 100644 --- a/index_edit.php +++ b/index_edit.php @@ -18,6 +18,12 @@ namespace Webtrees; use Zend_Session; +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'index_edit.php'); require './includes/session.php'; diff --git a/indilist.php b/indilist.php index 3ecbe852ff..aac4c9ceca 100644 --- a/indilist.php +++ b/indilist.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'indilist.php'); require './includes/session.php'; diff --git a/login.php b/login.php index c0a218ce4a..e1dd813670 100644 --- a/login.php +++ b/login.php @@ -19,6 +19,12 @@ namespace Webtrees; use Rhumsaa\Uuid\Uuid; use Zend_Session; +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'login.php'); require './includes/session.php'; diff --git a/mediafirewall.php b/mediafirewall.php index 9b3d854867..451982e507 100644 --- a/mediafirewall.php +++ b/mediafirewall.php @@ -18,6 +18,12 @@ namespace Webtrees; use Zend_Session; +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'mediafirewall.php'); require './includes/session.php'; diff --git a/note.php b/note.php index 8127f26554..eecef3dbb7 100644 --- a/note.php +++ b/note.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'note.php'); require './includes/session.php'; diff --git a/repo.php b/repo.php index a3523b3954..985e90a190 100644 --- a/repo.php +++ b/repo.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'repo.php'); require './includes/session.php'; diff --git a/source.php b/source.php index 043b137d72..920f2830e7 100644 --- a/source.php +++ b/source.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see . */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'source.php'); require './includes/session.php'; -- cgit v1.3