summaryrefslogtreecommitdiff
path: root/modules/g2_import
diff options
context:
space:
mode:
Diffstat (limited to 'modules/g2_import')
-rw-r--r--modules/g2_import/controllers/admin_g2_import.php2
-rw-r--r--modules/g2_import/helpers/g2_import.php6
-rw-r--r--modules/g2_import/views/admin_g2_import.html.php18
3 files changed, 13 insertions, 13 deletions
diff --git a/modules/g2_import/controllers/admin_g2_import.php b/modules/g2_import/controllers/admin_g2_import.php
index 18d09363..1c65f482 100644
--- a/modules/g2_import/controllers/admin_g2_import.php
+++ b/modules/g2_import/controllers/admin_g2_import.php
@@ -68,7 +68,7 @@ class Admin_g2_import_Controller extends Admin_Controller {
private function _get_import_form() {
$form = new Forge(
- "admin/g2_import/save", "", "post", array("id" => "gAdminConfigureG2ImportForm"));
+ "admin/g2_import/save", "", "post", array("id" => "g-admin-configure-g2-import-form"));
$group = $form->group("configure_g2_import")->label(t("Configure Gallery 2 Import"));
$group->input("embed_path")->label(t("Filesystem path to your Gallery 2 embed.php file"))
->value(module::get_var("g2_import", "embed_path", ""));
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index 7e5c6f75..99d56d5d 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -201,7 +201,7 @@ class g2_import_Core {
if (g2_import::g2_module_active("tags") && module::is_active("tag")) {
$result =
- g2($gallery->search("SELECT COUNT(DISTINCT([TagItemMap::itemId])) FROM [TagItemMap]"))
+ g2($gallery->search("SELECT COUNT(DISTINCT([Tag-itemMap::itemId])) FROM [Tag-itemMap]"))
->nextResult();
$stats["tags"] = $result[0];
} else {
@@ -853,8 +853,8 @@ class g2_import_Core {
$ids = array();
$results = g2($gallery->search(
- "SELECT DISTINCT([TagItemMap::itemId]) FROM [TagItemMap] " .
- "WHERE [TagItemMap::itemId] > ?",
+ "SELECT DISTINCT([Tag-itemMap::itemId]) FROM [Tag-itemMap] " .
+ "WHERE [Tag-itemMap::itemId] > ?",
array($min_id),
array("limit" => array("count" => 100))));
while ($result = $results->nextResult()) {
diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php
index 314f030b..51a1e245 100644
--- a/modules/g2_import/views/admin_g2_import.html.php
+++ b/modules/g2_import/views/admin_g2_import.html.php
@@ -1,11 +1,11 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<div id="gAdminG2Import">
+<div id="g-admin-g2-import">
<h1> <?= t("Gallery 2 Import") ?> </h1>
<p>
<?= t("Import your Gallery 2 users, photos, movies, comments and tags into your new Gallery 3 installation.") ?>
</p>
- <div id="gAdminG2ImportNotes">
+ <div id="g-admin-g2-import-notes">
<h2> <?= t("Notes") ?> </h2>
<p>
<?= t("The import process is a work in progress with some known issues:") ?>
@@ -28,14 +28,14 @@
<?= $form ?>
<? if (g2_import::is_initialized()): ?>
- <div id="gAdminG2ImportDetails">
+ <div id="g-admin-g2-import-details">
<h2> <?= t("Import") ?> </h2>
- <ul id="gMessage">
- <li class="gSuccess">
+ <ul id="g-action-status">
+ <li class="g-success">
<?= t("Gallery version %version detected", array("version" => g2_import::version())) ?>
</li>
<? if ($g2_sizes["thumb"]["size"] && $thumb_size != $g2_sizes["thumb"]["size"]): ?>
- <li class="gWarning">
+ <li class="g-warning">
<?= t("Your most common thumbnail size in Gallery 2 is %g2_pixels pixels, but your Gallery 3 thumbnail size is set to %g3_pixels pixels. <a href=\"%url\">Using the same value</a> will speed up your import.",
array("g2_pixels" => $g2_sizes["thumb"]["size"],
"g3_pixels" => $thumb_size,
@@ -44,7 +44,7 @@
<? endif ?>
<? if ($g2_sizes["resize"]["size"] && $resize_size != $g2_sizes["resize"]["size"]): ?>
- <li class="gWarning">
+ <li class="g-warning">
<?= t("Your most common intermediate size in Gallery 2 is %g2_pixels pixels, but your Gallery 3 thumbnail size is set to %g3_pixels pixels. <a href=\"%url\">Using the same value</a> will speed up your import.",
array("g2_pixels" => $g2_sizes["resize"]["size"],
"g3_pixels" => $resize_size,
@@ -53,7 +53,7 @@
<? endif ?>
</ul>
- <div class="gInfo">
+ <div class="g-info">
<p>
<?= t("Your Gallery 2 has the following importable data in it") ?>
</p>
@@ -84,7 +84,7 @@
</div>
<p>
- <a class="g-button g-dialogLink ui-state-default ui-corner-all"
+ <a class="g-button g-dialog-link ui-state-default ui-corner-all"
href="<?= url::site("admin/maintenance/start/g2_import_task::import?csrf=$csrf") ?>">
<?= t("Begin import!") ?>
</a>