Changed context help organization to enable use of central, multilanguage wiki.
[fa-stable.git] / admin / tags.php
index 9bb6c6d44067ea95fd0266eaf517d423a0b407ae..761b0995296ca1f77e4ed072120cfd7211256e98 100644 (file)
@@ -10,8 +10,6 @@
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
 $path_to_root = "..";
-include_once($path_to_root . "/includes/types.inc"); // For tag constants
-
 // Set up page security based on what type of tags we're working with
 if ($_GET['type'] == "account" || $_POST['type'] == TAG_ACCOUNT) {
        $page_security = 'SA_GLACCOUNTTAGS';
@@ -20,6 +18,7 @@ if ($_GET['type'] == "account" || $_POST['type'] == TAG_ACCOUNT) {
 }
 
 include($path_to_root . "/includes/session.inc");  // Define session before using $_SESSION
+include_once($path_to_root . "/includes/types.inc"); // For tag constants
 
 if (!isset($page_security)) {
   // If GET & POST don't have the info, try getting it from the session.
@@ -43,11 +42,11 @@ if (!isset($_POST['type'])) {
 switch ($_POST['type']) {
        case TAG_ACCOUNT:
                // Account tags
-               $_SESSION['page_title'] = _("Account Tags");
+               $_SESSION['page_title'] = _($help_context = "Account Tags");
                break;
        case TAG_DIMENSION:
                // Dimension tags
-               $_SESSION['page_title'] = _("Dimension Tags");
+               $_SESSION['page_title'] = _($help_context = "Dimension Tags");
 }
 
 page($_SESSION['page_title']);