Bharat Mediratta
bb981bb7b6
Merge branch 'master' of git@github.com:/gallery/gallery3
2009-07-17 16:58:15 -07:00
Bharat Mediratta
e7c6861507
Don't send back the gzipped version if we're using
...
zlib.output_compression in PHP, since that means that the stream is
already compressed. Fixes ticket 555.
2009-07-17 16:58:00 -07:00
Bharat Mediratta
cd907c2b42
Change model_cache::clear() API to clear everything. This prevents
...
old ORM relationships from hanging around, which was causing problems
when doing MPTT manipulations (resulting in incorrect permission
propagation-- very bad!)
2009-07-17 12:51:27 -07:00
Bharat Mediratta
8a6556b30b
Fix a bug where moved items don't properly inherit permissions from
...
their new target. After each move, recalculate the permissions for
the new parent's hierarchy.
Fixes ticket #552
2009-07-17 08:14:08 -07:00
Bharat Mediratta
0f766b149d
Second non-trivial change to the event code. We now publish model
...
related events from within the model handling code. The only
exception to this currently is item_created which is challenging
because we have to save the item using ORM_MPTT::add_to_parent()
before the object itself is fully set up. When we get that down to
one call to save() we can publish that event from within the model
also.
2009-07-16 12:31:40 -07:00
Bharat Mediratta
43324fd12a
Update golden file to match recent changes in event code.
2009-07-16 12:29:01 -07:00
Bharat Mediratta
5b3b675b6d
Non-trivial changes to the event handling code:
...
1) The item_updated event no longer takes the old and new items.
Instead we overload ORM to track the original data and make
that available via the item. This will allow us to move event
publishing down into the API methods which in turn will give us
more stability since we won't require each controller to remember
to do it.
2) ORM class now tracks the original values. It doesn't track
the original relationships (no need for that, yet)
3) Added new events:
item_deleted
group_deleted
user_deleted
2009-07-16 11:19:34 -07:00
Bharat Mediratta
ec634c91a6
Stripped the trailing ?> without changing whitespace.
2009-07-16 10:45:06 -07:00
Bharat Mediratta
2cd0d6389c
Revert "Remove trailing ?>."
...
This reverts commit a333e01bd1 .
2009-07-16 10:44:23 -07:00
Bharat Mediratta
a333e01bd1
Remove trailing ?>.
2009-07-16 10:32:18 -07:00
Bharat Mediratta
d9f3e0bc0e
Remove spurious blank line at the top of the file introduced in 09c9b1a755
2009-07-16 10:27:18 -07:00
Bharat Mediratta
b46998e392
Update Xss_Security_Test to know about p::purify() and checkpoint the
...
golden file.
2009-07-16 10:24:10 -07:00
Kevin Nehls
85b0f58029
move fix for backslashes on windows outside of loop per bharat's suggestion
...
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-07-16 21:36:51 +08:00
Kevin Nehls
5cb2f42628
Fix backslashes in relative URLs of combined css files.
...
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-07-16 21:36:50 +08:00
Bharat Mediratta
c4fce2cc68
Remove a completed @todo.
2009-07-15 20:32:53 -07:00
Tim Almdal
2cba5d9395
Fix 542 by changing the wording from you to your, thanks Floridave
...
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-15 07:58:30 +08:00
Bharat Mediratta
c4a3093011
3rd attempt to fix localization messages. Last time around I didn't
...
dig deep enough, but now we form the complete message using t() style
semantics to replace % placeholders with __ style JS placeholders.
Also, stop appending the (completed) text to existing messages.. roll
it together.
2009-07-14 12:36:57 -07:00
Bharat Mediratta
c3f93957d7
Move the gallery version out of a module variable and into a constant
...
in the gallery helper. This will let us bump the version without
having to bump the gallery module number.
2009-07-14 10:56:10 -07:00
Tim Almdal
cc05d279ea
Update HTMLPurifier to version 4.4.0
2009-07-14 07:55:30 -07:00
Tim Almdal
94e33c821f
Removed unnecessary contructor from the HTMLPurifier.php library class
2009-07-14 06:42:50 -07:00
Bharat Mediratta
2a40f48d65
Add /opt/bin as a binary path.
2009-07-14 06:36:48 -07:00
Bharat Mediratta
e2a9a1d284
Add quotes around all values that contain spaces in them, and add a
...
test to make sure that we continue to do so.
This makes sure that we don't have problems with 5.3 which treats the
literal "on" as a boolean.
2009-07-13 10:36:55 -07:00
Bharat Mediratta
ac181d6227
Whitespace fixes.
2009-07-11 20:12:32 -07:00
Bharat Mediratta
9588e8604d
Use %27 instead of ' (the latter is the wrong form of escaping for urls).
2009-07-12 20:08:02 -07:00
Bharat Mediratta
9809238399
Unescape ' also (single quote)
2009-07-11 19:17:12 -07:00
Bharat Mediratta
895fbfd95b
Get the thumbnail menu working.
...
1) Stop changing the menu classes in JS, instead allow us to specify
it in the Menu class itself and then set it to be gThumbMenu in Theme_View
2) Move the gThumbMenu init code to the bottom of the $(document).ready() block;
something in there was interfering with it.
2009-07-11 17:59:55 -07:00
Bharat Mediratta
b4c279ebb4
Fix whitespace typo.
2009-07-11 17:40:32 -07:00
Bharat Mediratta
e2967aa1c1
Fix a problem in delete() where we were referencing $parent without
...
saving its value before $item got deleted. Further fix for #528 .
2009-07-11 07:45:41 -07:00
Bharat Mediratta
8c6c3801bb
Fix a typo in the last commit. I left off a closing paren.
2009-07-11 07:12:29 -07:00
Bharat Mediratta
f2a3fa46f5
Change 'completed' status message to be a full sentence with javascript placeholders.
2009-07-11 07:10:05 -07:00
Shai Ben-Naphtali
30346ec842
Fixed indentation of commit 2760e119bbfc3e2d436c404de194dbeea738a735
...
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-12 14:11:15 +08:00
Shai Ben-Naphtali
245f4d39a7
This fixes ticket #513
...
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-12 14:11:14 +08:00
Bharat Mediratta
214d977f4d
Don't close the dialog window after we successfully complete an
...
action. The expectation is that we're going to reload the page (or
redirect to a new url). If we close the dialog, then we can trigger
the onhover for items we've just deleted causing errors.
Simplify the API while we're at it by getting rid of the no-longer-used
on_success argument to openDialog()
This fixes #528 .
2009-07-11 06:51:21 -07:00
Bharat Mediratta
4d0099e716
Fix a bug where we're referring to $photo when we just uploaded a
...
$movie, that causes the simpler uploader to throw an error for all
movies.
2009-07-11 06:24:10 -07:00
Bharat Mediratta
6b013060aa
Fix style: space after ) before {.
2009-07-11 06:15:44 -07:00
Bharat Mediratta
ecc7d881e3
Fix bug introduced in e0e450d90f where
...
it got rid of the 'img' var which is used when we set the click action
on buttons.
Partial fix for #528 .
2009-07-11 05:52:50 -07:00
Bharat Mediratta
6281ed03d5
Turn off extended inserts when creating install.sql so that it's
...
easier to see what's changed.
2009-07-11 05:36:31 -07:00
Tim Almdal
4132d6c55e
Put quotes around the href param (href="#")
2009-07-11 15:47:04 -07:00
Tim Almdal
f1b2a14f4f
Add a title attribute to the li of a menu
2009-07-10 23:45:29 -07:00
Chad Kieffer
e0e450d90f
Position gItem and gPhoto relative, then position quick and thumb menus as absolute within them. Moved css from quick.js to quick.css.
2009-07-11 00:40:57 -06:00
Tim Almdal
fe6320ef4c
Fix for ticket #341 .
...
Change the wording for the sort order from "Default" to "Order Added"
2009-07-10 18:11:12 -07:00
Tim Almdal
f887fd32a4
Forgot to add this file when change "Done"'s to "Close"'s
2009-07-10 14:19:33 -07:00
Tim Almdal
15bb52a776
Change the word "Done" to "Close" to make translations easier
2009-07-10 14:12:13 -07:00
Tim Almdal
09c9b1a755
Added the upload::required validation in order to insure that failed uploads
...
are not treated as successful.
Log any exceptions to the Kohana log and return the error message
2009-07-10 11:35:28 -07:00
Bharat Mediratta
86a7b15d20
Compact all menus. This fixes the problem that the new [Options]
...
thumb menu shows up when it has nothing in it.
2009-07-10 10:39:59 -07:00
Bharat Mediratta
12796ec2ca
Create a new [options] submenu under the thumb menu, and move the
...
Digibug print button into it. Right now, it doesn't display properly.
2009-07-10 08:20:00 -07:00
Bharat Mediratta
74d4a4c0fd
Merge branch 'master' of git@github.com:/gallery/gallery3
2009-07-07 21:20:37 -07:00
Tim Almdal
6ac5238b83
Add task logging to the "Update Search Index" task
2009-07-08 09:27:37 -07:00
Tim Almdal
ac797e609c
Add task logging to the Update translations
2009-07-08 09:08:15 -07:00
Tim Almdal
9f00e734ed
Added the button formatting to the other links on the Admin Maintenance page.
2009-07-08 08:26:14 -07:00