summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--admin_site_merge.php6
-rw-r--r--admin_trees_export.php6
-rw-r--r--admin_trees_manage.php6
-rw-r--r--admin_trees_places.php6
-rw-r--r--admin_trees_renumber.php6
-rw-r--r--admin_users.php6
-rw-r--r--autocomplete.php6
-rw-r--r--calendar.php9
-rw-r--r--edit_interface.php6
-rw-r--r--edituser.php6
-rw-r--r--famlist.php6
-rw-r--r--index.php6
-rw-r--r--index_edit.php6
-rw-r--r--indilist.php6
-rw-r--r--login.php6
-rw-r--r--mediafirewall.php6
-rw-r--r--note.php6
-rw-r--r--repo.php6
-rw-r--r--source.php6
19 files changed, 117 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * 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 <http://www.gnu.org/licenses/>.
*/
+/**
+ * Defined in session.php
+ *
+ * @global Tree $WT_TREE
+ */
+
define('WT_SCRIPT_NAME', 'source.php');
require './includes/session.php';