Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-3518

change $charset contstant to settings::get('locale')

    XMLWordPrintable

Details

    Description

      {{{
      #!php

      <?php
      /* This file is part of a copyrighted work; it is distributed with NO WARRANTY.

      • See the file COPYRIGHT.html for more details.
        */
          1. following needed since this is included from within a class method – Fred
            global $nav, $tab, $focus_form_name, $focus_form_field, $doing_install;
            ?><!DOCTYPE html ><html lang=<?php settings::get('locale'); ?> class="no-js <?php echo ($doing_install?'obInstall':'no-obInstall'); ?>" ><head>
            <!-- charset MUST be specified within first 512 char of page to be effective -->
            <?php
            echo '<meta charset="'.settings::get('charset').'" />';
            ?><title>
            <?php
            if (!isset($doing_install) or !$doing_install) {
            // If the cookie contains a site id, we take this one, otherwise the default.
            // Adjusted, so that if 'library_name' contains a string, the site is put by default on 1.
            $libName = Settings::get('library_name');
            if(empty($_SESSION['current_site']))
            Unknown macro: { if(isset($_COOKIE['OpenBiblioSiteID'])) { $_SESSION['current_site'] = $_COOKIE['OpenBiblioSiteID']; } elseif($_SESSION['multi_site_func'] > 0){ $_SESSION['current_site'] = $_SESSION['multi_site_func']; } else { $_SESSION['current_site'] = 1; } }
            if($_SESSION[&#x27;multi_site_func&#x27;] > 0){	
            	$sit = new Sites;
            	$lib = $sit->getOne($_SESSION[&#x27;current_site&#x27;]);
            	$libName = $lib[name];				
            } 	
            		
            echo $libName;
            if($params[&#x27;title&#x27;]) {
            	echo &#x27;: &#x27;.H($params[&#x27;title&#x27;]);
            }		
            

      }
      ?>

      </title>
      <meta name="description" content="OpenBiblio ver 1.0a">
      <meta name="author" content="Luuk Jansen">
      <meta name="author" content="Fred LaPlante">
      <meta name="author" content="Micah Stetson">
      <meta name="tester" content="Neil Redgate"><link rel="icon" href="../favicon.ico" type="image/x-icon" /-->
      <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" /> <!-- this line MUST precede all .css & JS files - FL
      Based on the browser in use, it places many conditional classes
      into the <body> tag for use by feature-specific CSS & JS statements.
      It also deals with html5 support issues for IE browsers. -><script src="../shared/modernizr-2.0.6.min.js"></script><!- All other JavaScript is placed at the end of <body> (see footer.php)
      to match industry best practices and to improve overall performance -><!- This style sheet resets all browsers to a common default style -><link rel="stylesheet" href="../shared/base2.css" /><!- OpenBiblio style is set here --><link rel="stylesheet" href="<?php echo H($params['theme_dir_url']) ?>/style.css" /> <?php

        1. ---------------------------------------------------------------------
        2. — added plugin support – Fred -----------------------
          if (file_exists('custom_head.php')) { include ('custom_head.php'); }
        3. ---------------------------------------------------------------------
          ?> </head>
          <body>
          }}}

      Attachments

        Activity

          People

            Unassigned Unassigned
            Anonymous Anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: