Skip to content

Commit

Permalink
fix: Use KeymanVersion from shared-sites
Browse files Browse the repository at this point in the history
  • Loading branch information
darcywong00 committed Feb 11, 2025
1 parent b1ca191 commit a2c22da
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 25 deletions.
18 changes: 0 additions & 18 deletions _includes/2020/KeymanVersion.php

This file was deleted.

2 changes: 1 addition & 1 deletion _includes/2020/templates/Foot.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Keyman\Site\com\keyman\templates;

use Keyman\Site\Common\ImageRandomizer;
use Keyman\Site\com\keyman\KeymanVersion;
use Keyman\Site\Common\KeymanVersion;
use Keyman\Site\Common\KeymanHosts;

class Foot {
Expand Down
2 changes: 1 addition & 1 deletion _includes/2020/templates/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Keyman\Site\com\keyman\templates;

use Keyman\Site\com\keyman\Util;
use Keyman\Site\com\keyman\KeymanVersion;
use Keyman\Site\Common\KeymanVersion;
use Keyman\Site\Common\KeymanHosts;

class Menu {
Expand Down
4 changes: 2 additions & 2 deletions _includes/includes/servervars.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
Keyman\Site\com\keyman\KeymanComSentry::init();

// *don't* use autoloader here because it may lead to side-effects in older pages
require_once(__DIR__ . '/../2020/KeymanVersion.php');
require_once(__DIR__ . '/../../_common/KeymanVersion.php');
require_once(__DIR__ . '/../../_common/KeymanHosts.php');
require_once(__DIR__ . '/../2020/Util.php');

use \Keyman\Site\com\keyman\KeymanVersion;
use \Keyman\Site\Common\KeymanVersion;
use \Keyman\Site\Common\KeymanHosts;
use \Keyman\Site\com\keyman\Util;

Expand Down
2 changes: 1 addition & 1 deletion _includes/includes/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// *Don't* use autoloader here because of potential side-effects in older pages
require_once(__DIR__ . '/../2020/Util.php');
require_once(__DIR__ . '/../2020/KeymanVersion.php');
require_once(__DIR__ . '/../../_common/KeymanVersion.php');
require_once(__DIR__ . '/../2020/templates/Head.php');

function template_finish($foot) {
Expand Down
2 changes: 1 addition & 1 deletion bookmarklet/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_once('includes/template.php');
require_once __DIR__ . '/../_includes/autoload.php';
use Keyman\Site\Common\KeymanHosts;
use Keyman\Site\com\keyman\KeymanVersion;
use Keyman\Site\Common\KeymanVersion;

$lang = isset($_GET['language']) ? json_encode($_GET['language']) : '""';
$kbd = isset($_GET['keyboard']) ? json_encode($_GET['keyboard']) : '""';
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## START STANDARD SITE BUILD SCRIPT INCLUDE
readonly THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
readonly BOOTSTRAP="$(dirname "$THIS_SCRIPT")/resources/bootstrap.inc.sh"
readonly BOOTSTRAP_VERSION=v0.15
readonly BOOTSTRAP_VERSION=fix/keyman-version # TODO: v0.16
[ -f "$BOOTSTRAP" ] && source "$BOOTSTRAP" || source <(curl -fs https://raw.githubusercontent.com/keymanapp/shared-sites/$BOOTSTRAP_VERSION/bootstrap.inc.sh)
## END STANDARD SITE BUILD SCRIPT INCLUDE

Expand Down

0 comments on commit a2c22da

Please sign in to comment.