Bharat Mediratta
4e0848a1a5
Clean up some indentation.
2009-07-07 11:22:13 -07:00
Tim Almdal
b59e94e7dc
Change references to Gallery 2 and Gallery 3 to consistently refer to
...
Gallery n as opposed any variants of this.
2009-07-07 07:32:36 -07:00
Tim Almdal
493fb27825
Cleanup remove task processing. Change Task_Model::delete to call parent::delete
...
instead of parent::save. :-) Also change admin_maintenance_controller to delete
via looping over all of the completed tasks and delete individually, so we can
delete the associated cache entries at the same time.
2009-07-06 22:20:04 -07:00
Tim Almdal
6588f3bbd1
Change wording of failed to import tags to make it consistent with the other failed import messages. Thanks shai
2009-07-06 21:46:50 -07:00
Tim Almdal
dfc704516a
correct spacing in a message. thanks shai
2009-07-06 21:10:59 -07:00
Tim Almdal
dff0ffc4f5
Fix for tickets #312 and #370 . Added a task logging api. Changed g2_import
...
to write all activity to the "log file". The "log file" is stored in the
persistent cache.
2009-07-06 20:05:35 -07:00
Bharat Mediratta
30aa065013
Don't use jQuery in the error page, it interferes with the jquery lib
...
in the outer page when we load it in a dialog context.
2009-07-06 12:41:54 -07:00
Tim Almdal
6dbd36d1cc
Always log the task completion status message
2009-07-06 10:29:55 -07:00
Tim Almdal
f381927ec6
Catch exceptions that are thrown within the task and log them to the task log
...
and then set the task to done, the state to error and the status message set
to the Exception Message.
2009-07-06 07:39:36 -07:00
Tim Almdal
04f02b49c5
Add task logging functionality. When a task runs, it creates a log that is
...
stored in the persistant cache for 30 days. On the admin_maintenance page
there is a new link for completed tasks "browse log". Clicking this will
open a dialog box that has the the contents of the log displayed.
The user can then view the log and close the dialog, or press the save button
to download the log to their local machine.
2009-07-05 17:38:49 -07:00
Tim Almdal
fcb031c2b6
Rename the get_url function in organize.js so that it doesn't collide with the
...
one in server_add
2009-07-04 22:47:43 -07:00
Tim Almdal
85de208879
Lets try the BBCode conversion again... go with basic tags even if some are
...
deprecated.
2009-07-04 20:30:13 -07:00
Tim Almdal
4f0b4469f9
Forgot this file when i was fixing #477
2009-07-04 17:33:10 -07:00
Tim Almdal
50462edd9c
Change the BBCode Transformation to use the <span class=""> where possible
2009-07-04 17:14:21 -07:00
Tim Almdal
799d82fd6a
Revert "Change the bbcode transformation to more standard tags that can be"
...
This reverts commit 4ba022438e .
2009-07-04 17:01:47 -07:00
Tim Almdal
4ba022438e
Change the bbcode transformation to more standard tags that can be
...
easily style via css
2009-07-04 16:18:48 -07:00
Tim Almdal
0f9bfbdd57
Use TMPPATH in the purifier config instead of var/tmp
2009-07-04 09:10:03 -07:00
Tim Almdal
7a9a4b9e8b
Found another place that p:purify was required.
...
Generalize the dynamic.html so it doesn't require a tag element
2009-07-04 09:00:11 -07:00
Tim Almdal
d6648c0aff
Fix for ticket #477 . Use nl2br method when rendering comment::text and
...
item::description. In addition add p::clean or p::purify to places that
xss cleaning had missed (i.e. rss feeds)
2009-07-04 08:17:12 -07:00
Tim Almdal
54ffea2419
Split the clean method into two clean and purify. clean is a light weight
...
approach using html::specialchars and purify uses HTMLPurifier to intelligently
cleanse the output fields. Use purifier for text and title fields where it is
likely that a user would enter html to format their data.
2009-07-03 21:44:10 -07:00
Andy Staudacher
a633c134b7
Ticket 104: Adding "Copy sourc text" button to l10n UI (usability / productivity improvement)
2009-07-03 16:14:05 -07:00
Andy Staudacher
fb472da0ba
Ignore lib/ folders in l10n_scanner task.
...
1. Because it makes sense.
2. As a quick fix - For some reason it wouldn't work properly anymore now with the HTMLPurifier lib
2009-07-03 16:11:17 -07:00
Andy Staudacher
bafbe5a2d2
Fix for ticket 510: i18n fixes - localize module / theme name in some status messages
2009-07-03 14:58:33 -07:00
Tim Almdal
f6d847739a
Update the source so the third party code passes the File Structure Test
2009-07-03 14:18:45 -07:00
Tim Almdal
8d5900f639
Fix for ticket #400 : Add HTMLPurifier to gallery3 and change p::clean() to call HTMLPurifier->purify()
2009-07-03 12:56:59 -07:00
Tim Almdal
b6e5bf6eaa
Fix for ticket #400 : Add HTMLPurifier to gallery3 and change p::clean() to call HTMLPurifier->purify()
2009-07-03 12:56:29 -07:00
Tim Almdal
cf279fc315
Fix for #364 = G2 Import Doesn't support markup
...
Create a _transform_bbcode which coverts the g2 bbcode to html.
The html won't be rendered until ticket #400 is implemented as
pclean() excapse the html
2009-07-03 08:14:28 -07:00
Tim Almdal
85ea66d51e
Merge branch 'master' of git@github.com:gallery/gallery3
2009-07-02 20:52:55 -07:00
Andy Staudacher
72281d2b44
Fix for ticket 470. Replace ReCaptcha with reCAPTCHA in user visible strings.
2009-07-02 20:50:29 -07:00
Andy Staudacher
93e9efed97
Use Unicode characters (looks better to translator, and fixes normalization issue in translation server)
2009-07-02 20:49:47 -07:00
Tim Almdal
adb820e37c
Fix for ticket #359 and a partial fix for ticket #345 .
...
In G2, text strings have the &, ", < and > replaced by &, "e;,
< and > respectively. Created the _decode_html_special_chars
method in helpers/g2_import.php to revert these character strings.
2009-07-02 20:48:47 -07:00
Tim Almdal
1c9dee93de
Fix for ticket #390 .
...
Added a call to GalleryCoreApi::fetchItemViewCounts to retrieve the gallery2
view counts forthe imported items.
2009-07-02 09:54:50 -07:00
Tim Almdal
a13ddfea8f
Suppress the filesize error if the thumbnail is not found so we can get
...
an EMPTY_INPUT_FILE exception which we can then log and continue.
2009-07-02 07:53:24 -07:00
Tim Almdal
b6bf7a5881
Merge branch 'master' of git@github.com:gallery/gallery3
2009-07-02 07:36:00 -07:00
Tim Almdal
7bc40fd315
Start of fixing a problem with importing movies w/o a thumbnail
2009-07-01 23:14:01 -07:00
Bharat Mediratta
a674170bf7
2 fixes:
...
1) Include the url in the cache key so that if the Gallery moves, we
don't use old cached entries.
2) Use the relative path to files in the comments that we embed in our
files so that we don't leak local paths.
2009-07-01 22:55:43 -07:00
Tim Almdal
6f3ec5f039
Fix for ticket #357 .
...
Changed the set the created date as part of the import and change
models/comment::save() to not set the creation date if it is already
set.
2009-07-01 22:18:52 -07:00
Tim Almdal
588f991d55
Updated to Exifer r4159
2009-07-01 21:56:02 -07:00
Tim Almdal
60b201f23b
Add the partner id to the message being sent to digibug
2009-07-01 18:01:15 -07:00
Bharat Mediratta
8f9a943f55
Fix a bunch of XSS vulnerabilities turned up by manual inspection
...
using the checklist in ticket #385 .
2009-07-01 17:57:39 -07:00
Bharat Mediratta
7b1e3c5021
Reapply c65bfb5a10 without extra
...
whitespace changes.
2009-07-01 11:32:27 -07:00
Bharat Mediratta
8f4c1c4ddf
Revert "Fix for ticket #437 "
...
This change had unintentional whitespace changes. Reverting for now, will reapply it.
This reverts commit c65bfb5a10 .
2009-07-01 11:31:12 -07:00
Tim Almdal
c65bfb5a10
Fix for ticket #437
...
Tracking vendor ticket: http://bit.ly/16b7Zj
2009-07-01 10:45:37 -07:00
Chad Kieffer
0d105bcf9d
Display owner's full name rather than username, ticket #421 .
2009-06-30 23:29:53 -06:00
Bharat Mediratta
58e3e469b9
Merge branch 'master' of git://github.com/hiwilson/gallery3
2009-06-30 21:09:38 -07:00
Tim Almdal
200b78ee59
Revert the change that removed adding the click handler for the digibug print
...
functionality. Just return false when using javascript:digibug_popup was not
enough from having the browser switch pages and show a page with the word false.
Using an event handler allows us to call event.preventDefault which cancels the
page switch.
2009-06-30 20:32:59 -07:00
Tim Almdal
b541935d6f
Fix issues with Digibug printing where the preview ws not showing up.
2009-06-30 20:17:48 -07:00
Bharat Mediratta
3ef39d4576
Update Exif_test to match change made in 4943103700
...
Get rid of vestigial third column in exif::_keys().
2009-06-30 19:17:45 -07:00
Bharat Mediratta
d8e776cc88
Checkpoint.
2009-06-30 19:12:46 -07:00
Bharat Mediratta
5e8e3ab6b5
Rejigger the way we handle "done" status in the upgrader. Now we
...
present the done box if you're done and let you get rid of it if you
want. It's not beautiful, by any means, but it gives you an easy link
back to your Gallery when you're finished.
Fixes ticket #479 .
2009-06-30 18:28:55 -07:00