diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php
index 0080b4ce..c73eda08 100644
--- a/modules/search/helpers/search.php
+++ b/modules/search/helpers/search.php
@@ -57,7 +57,7 @@ class search_Core {
list ($remaining) = search::stats();
if ($remaining) {
site_status::warning(
- t('Your search index needs to be updated.
Fix this now',
+ t('Your search index needs to be updated.
Fix this now',
array("url" => html::mark_clean(url::site("admin/maintenance/start/search_task::update_index?csrf=__CSRF__")))),
"search_index_out_of_date");
}
diff --git a/modules/server_add/js/server_add.js b/modules/server_add/js/server_add.js
index 50a8c36b..86bff079 100644
--- a/modules/server_add/js/server_add.js
+++ b/modules/server_add/js/server_add.js
@@ -21,7 +21,7 @@
self.run_add();
});
$("#gServerAddCloseButton", this.element).click(function(event) {
- $("#gDialog").dialog("close");
+ $("#g-dialog").dialog("close");
window.location.reload();
});
$("#gServerAddTree span.gDirectory", this.element).dblclick(function(event) {
@@ -33,7 +33,7 @@
$("#gServerAddTree span.gDirectory", this.element).dblclick(function(event) {
self.open_dir(event);
});
- $("#gDialog").bind("dialogclose", function(event, ui) {
+ $("#g-dialog").bind("dialogclose", function(event, ui) {
window.location.reload();
});
},
diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js
index 52c695c6..ab3691a6 100644
--- a/modules/tag/js/tag.js
+++ b/modules/tag/js/tag.js
@@ -24,7 +24,7 @@ function closeEditInPlaceForms() {
$("#gRenameTagForm").parent().html($("#gRenameTagForm").parent().data("revert"));
li.height("");
$(".gEditable", li).bind("click", editInPlace);
- $(".gDialogLink", li).gallery_dialog();
+ $(".g-dialogLink", li).gallery_dialog();
}
}
diff --git a/modules/tag/views/admin_tags.html.php b/modules/tag/views/admin_tags.html.php
index b7344cda..a4bd5d8f 100644
--- a/modules/tag/views/admin_tags.html.php
+++ b/modules/tag/views/admin_tags.html.php
@@ -50,7 +50,7 @@
= html::clean($tag->name) ?>
(= $tag->count ?>)
id") ?>"
- class="gDialogLink delete-link g-button">
+ class="g-dialogLink delete-link g-button">
= t("Delete this tag") ?>
diff --git a/modules/user/helpers/group.php b/modules/user/helpers/group.php
index 04e6efd6..e0dfac8e 100644
--- a/modules/user/helpers/group.php
+++ b/modules/user/helpers/group.php
@@ -86,6 +86,7 @@ class group_Core {
static function get_add_form_admin() {
$form = new Forge("admin/users/add_group", "", "post", array("id" => "gAddGroupForm"));
+ $form->set_attr('class', "g-narrow");
$form_group = $form->group("add_group")->label(t("Add Group"));
$form_group->input("name")->label(t("Name"))->id("gName");
$form_group->inputs["name"]->error_messages(
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php
index b9162b92..93c385a3 100644
--- a/modules/user/helpers/user.php
+++ b/modules/user/helpers/user.php
@@ -26,6 +26,7 @@
class user_Core {
static function get_edit_form($user) {
$form = new Forge("users/$user->id?_method=put", "", "post", array("id" => "gEditUserForm"));
+ $form->set_attr("class", "g-narrow");
$group = $form->group("edit_user")->label(t("Edit User: %name", array("name" => $user->name)));
$group->input("full_name")->label(t("Full Name"))->id("gFullName")->value($user->full_name);
self::_add_locale_dropdown($group, $user);
@@ -66,6 +67,7 @@ class user_Core {
static function get_add_form_admin() {
$form = new Forge("admin/users/add_user", "", "post", array("id" => "gAddUserForm"));
+ $form->set_attr('class', "g-narrow");
$group = $form->group("add_user")->label(t("Add User"));
$group->input("name")->label(t("Username"))->id("gUsername")
->error_messages("in_use", t("There is already a user with that username"));
@@ -112,6 +114,7 @@ class user_Core {
static function get_login_form($url) {
$form = new Forge($url, "", "post", array("id" => "gLoginForm"));
+ $form->set_attr('class', "g-narrow");
$group = $form->group("login")->label(t("Login"));
$group->input("name")->label(t("Username"))->id("gUsername")->class(null);
$group->password("password")->label(t("Password"))->id("gPassword")->class(null);
diff --git a/modules/user/views/admin_users.html.php b/modules/user/views/admin_users.html.php
index 0741a932..a46e402f 100644
--- a/modules/user/views/admin_users.html.php
+++ b/modules/user/views/admin_users.html.php
@@ -28,7 +28,7 @@
{},
function(data) {
$("#group-" + group_id).html(data);
- $("#group-" + group_id + " .gDialogLink").gallery_dialog();
+ $("#group-" + group_id + " .g-dialogLink").gallery_dialog();
});
}
@@ -43,7 +43,7 @@
"
- class="gDialogLink g-button g-right ui-icon-left ui-state-default ui-corner-all"
+ class="g-dialogLink g-button g-right ui-icon-left ui-state-default ui-corner-all"
title="= t("Create a new user")->for_html_attr() ?>">
= t("Add a new user") ?>
@@ -89,7 +89,7 @@
= t("edit") ?>
if (user::active()->id != $user->id && !$user->guest): ?>
id") ?>"
- class="gDialogLink g-button ui-state-default ui-corner-all ui-icon-left">
+ class="g-dialogLink g-button ui-state-default ui-corner-all ui-icon-left">
= t("delete") ?>
else: ?>
for_html_attr() ?>"
@@ -105,7 +105,7 @@
"
- class="gDialogLink g-button g-right ui-icon-left ui-state-default ui-corner-all"
+ class="g-dialogLink g-button g-right ui-icon-left ui-state-default ui-corner-all"
title="= t("Create a new group")->for_html_attr() ?>">
= t("Add a new group") ?>
diff --git a/modules/user/views/admin_users_group.html.php b/modules/user/views/admin_users_group.html.php
index 6f2496f8..e5c9fcee 100644
--- a/modules/user/views/admin_users_group.html.php
+++ b/modules/user/views/admin_users_group.html.php
@@ -4,11 +4,11 @@
if (!$group->special): ?>
id") ?>"
title="= t("Delete the %name group", array("name" => $group->name))->for_html_attr() ?>"
- class="gDialogLink g-button ui-state-default ui-corner-all">
+ class="g-dialogLink g-button ui-state-default ui-corner-all">
= t("delete") ?>
else: ?>
for_html_attr() ?>"
- class="gDialogLink g-button ui-state-disabled ui-corner-all ui-icon-left">
+ class="g-dialogLink g-button ui-state-disabled ui-corner-all ui-icon-left">
= t("delete") ?>
endif ?>
diff --git a/modules/user/views/login.html.php b/modules/user/views/login.html.php
index bb670d51..c814bbfa 100644
--- a/modules/user/views/login.html.php
+++ b/modules/user/views/login.html.php
@@ -11,7 +11,7 @@
= t('Logged in as %name', array('name' => html::mark_clean(
'
id}") .
'" title="' . t("Edit Your Profile")->for_html_attr() .
- '" id="gUserProfileLink" class="gDialogLink">' .
+ '" id="gUserProfileLink" class="g-dialogLink">' .
html::clean($user->display_name()) . ''))) ?>
diff --git a/modules/user/views/login_ajax.html.php b/modules/user/views/login_ajax.html.php
index a7530134..d3364b46 100644
--- a/modules/user/views/login_ajax.html.php
+++ b/modules/user/views/login_ajax.html.php
@@ -1,12 +1,12 @@
-
endif ?>
diff --git a/themes/admin_wind/css/screen.css b/themes/admin_wind/css/screen.css
index 2679386b..24c63756 100644
--- a/themes/admin_wind/css/screen.css
+++ b/themes/admin_wind/css/screen.css
@@ -67,7 +67,7 @@ h3 {
a,
.gMenu a,
-#gDialog a,
+#g-dialog a,
.g-button,
.g-button:hover,
.g-button:active,
@@ -80,7 +80,7 @@ button.ui-state-hover {
}
a:hover,
-#gDialog a:hover {
+#g-dialog a:hover {
text-decoration: underline;
}
@@ -88,21 +88,6 @@ a:hover,
text-decoration: none;
}
-#gDialog .gCancel {
- clear: none;
- float: left;
- margin: .3em 1em;
-}
-
-#gForgotPasswordLink {
- float: right;
- font-size: .9em;
-}
-
-#gDialog .gCancel {
- float: left;
-}
-
/* Tables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
table {
@@ -782,7 +767,7 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
font-size: 0;
}
-.gDialogLoadingLarge {
+.g-dialogLoadingLarge {
background: url('../../../lib/images/loading-large.gif') no-repeat center center !important;
font-size: 0;
}
@@ -836,34 +821,6 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
opacity: .7;
}
-#gDialog {
- text-align: left;
-}
-
-#gDialog li {
- padding-left: 0;
-}
-
-#gDialog form input[type="text"],
-#gDialog form input[type="password"] {
- width: 100%;
-}
-
-#gDialog #gLoginForm,
-#gDialog #gAddUserForm,
-#gDialog #gAddGroupForm {
- margin: 0 auto;
- width: 270px;
-}
-
-#gDialog fieldset {
- border: none;
-}
-
-#gDialog legend {
- display: none;
-}
-
/* jQuery UI ThemeRoller buttons */
.gButtonSet {
@@ -1056,7 +1013,7 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
float: right;
}
-#gTaskLogDialog h1 {
+#gTaskLog-dialog h1 {
font-size: 1.1em;
}
@@ -1143,7 +1100,7 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
.rtl caption,
.rtl th,
-.rtl #gDialog {
+.rtl #g-dialog {
text-align: right;
}
@@ -1159,7 +1116,7 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
float: left;
}
-.rtl #gDialog .gCancel,
+.rtl #g-dialog .g-cancel,
.rtl form ul ul li,
.rtl input[type="submit"],
.rtl input[type="reset"],
diff --git a/themes/admin_wind/js/ui.init.js b/themes/admin_wind/js/ui.init.js
index d9b011bd..a603f87f 100644
--- a/themes/admin_wind/js/ui.init.js
+++ b/themes/admin_wind/js/ui.init.js
@@ -17,7 +17,7 @@ $(document).ready(function(){
$("#gMessage li").gallery_show_message();
// Initialize modal dialogs
- $(".gDialogLink").gallery_dialog();
+ $(".g-dialogLink").gallery_dialog();
// Initialize ajax links
$(".gAjaxLink").gallery_ajax();
diff --git a/themes/wind/css/fix-ie.css b/themes/wind/css/fix-ie.css
index 4c13764f..8899ec59 100644
--- a/themes/wind/css/fix-ie.css
+++ b/themes/wind/css/fix-ie.css
@@ -23,7 +23,7 @@ input.submit {
width: 110px;
}
-#gDialog a.gCancel {
+#g-dialog a.g-cancel {
display: inline-block !important;
float: none !important;
}
diff --git a/themes/wind/css/screen.css b/themes/wind/css/screen.css
index 8f17e310..ec75d310 100644
--- a/themes/wind/css/screen.css
+++ b/themes/wind/css/screen.css
@@ -67,7 +67,7 @@ h3 {
a,
.gMenu a,
-#gDialog a,
+#g-dialog a,
.g-button,
.g-button:hover,
.g-button:active,
@@ -81,7 +81,7 @@ button.ui-state-hover {
}
a:hover,
-#gDialog a:hover {
+#g-dialog a:hover {
text-decoration: underline;
}
@@ -89,22 +89,7 @@ a:hover,
text-decoration: none;
}
-#gDialog .gCancel {
- clear: none;
- float: left;
- margin: .3em 1em;
-}
-
-#gForgotPasswordLink {
- float: right;
- font-size: .9em;
-}
-
-#gDialog .gCancel {
- float: left;
-}
-
-#gDialog #gMessage li {
+#g-dialog #gMessage li {
width: 400px;
white-space: normal;
padding-left: 32px;
@@ -685,13 +670,13 @@ form .gError,
font-weight: bold;
}
-#gDialog ul.gBreadcrumbs {
+#g-dialog ul.gBreadcrumbs {
clear: both;
margin-left: 0;
padding-left: 0;
}
-#gDialog .gBreadcrumbs li {
+#g-dialog .gBreadcrumbs li {
font-size: .9em;
}
@@ -822,7 +807,7 @@ form .gError,
font-size: 0;
}
-.gDialogLoadingLarge {
+.g-dialogLoadingLarge {
background: url('../../../lib/images/loading-large.gif') no-repeat center center !important;
font-size: 0;
}
@@ -850,38 +835,6 @@ form .gError,
opacity: .7;
}
-#gDialog {
- text-align: left;
-}
-
-#gDialog li {
- padding-left: 0;
-}
-
-#gDialog form input[type="text"],
-#gDialog form input[type="password"] {
- width: 100%;
-}
-
-#gDialog #gLoginForm,
-#gDialog #gAddUserForm,
-#gDialog #gAddGroupForm {
- margin: 0 auto;
- width: 270px;
-}
-
-#gDialog fieldset {
- border: none;
-}
-
-#gDialog legend {
- display: none;
-}
-
-#gDialog p {
- margin: 0;
-}
-
/* jQuery UI ThemeRoller buttons */
.gButtonSet {
@@ -1097,7 +1050,7 @@ form .gError,
.rtl caption,
.rtl th,
-.rtl #gDialog {
+.rtl #g-dialog {
text-align: right;
}
@@ -1109,7 +1062,7 @@ form .gError,
float: left;
}
-.rtl #gDialog .gCancel,
+.rtl #g-dialog .g-cancel,
.rtl form ul ul li,
.rtl input[type="submit"],
.rtl input[type="reset"],
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js
index 4a1962c0..4b3b4306 100644
--- a/themes/wind/js/ui.init.js
+++ b/themes/wind/js/ui.init.js
@@ -26,8 +26,8 @@ $(document).ready(function() {
$("#gMessage li").gallery_show_message();
// Initialize dialogs
- $("#gLoginLink").addClass("gDialogLink");
- $(".gDialogLink").gallery_dialog();
+ $("#gLoginLink").addClass("g-dialogLink");
+ $(".g-dialogLink").gallery_dialog();
// Initialize view menu
if ($("#gViewMenu").length) {
diff --git a/themes/wind/views/album.html.php b/themes/wind/views/album.html.php
index 01f7be50..fd647f81 100644
--- a/themes/wind/views/album.html.php
+++ b/themes/wind/views/album.html.php
@@ -30,7 +30,7 @@
if ($user->admin || access::can("add", $item)): ?>
$addurl = url::file("index.php/simple_uploader/app/$item->id") ?>
= t("There aren't any photos here yet! Add some.",
- array("attrs" => html::mark_clean("href=\"$addurl\" class=\"gDialogLink\""))) ?>
+ array("attrs" => html::mark_clean("href=\"$addurl\" class=\"g-dialogLink\""))) ?>
else: ?>
= t("There aren't any photos here yet!") ?>
endif; ?>
--
cgit v1.2.3
From 7236208655c3a4c9fba59b36efaeb8f6175a0819 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Fri, 2 Oct 2009 13:20:44 -0700
Subject: Log the stack trace when non-admins get the error.
---
modules/gallery/views/kohana_error_page.php | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'modules/gallery/views')
diff --git a/modules/gallery/views/kohana_error_page.php b/modules/gallery/views/kohana_error_page.php
index 9361514d..314a9923 100644
--- a/modules/gallery/views/kohana_error_page.php
+++ b/modules/gallery/views/kohana_error_page.php
@@ -117,6 +117,11 @@
endif ?>
+ else: ?>
+ $trace = $PHP_ERROR ? array_slice(debug_backtrace(), 1) : $exception->getTraceAsString(); ?>
+ if (!empty($trace)): ?>
+ Kohana::Log("error", print_r($trace, 1)); ?>
+ endif ?>
endif ?>