Commit Graph

162 Commits

Author SHA1 Message Date
Tim Almdal
8c1f600611 Corrections based on feedback 2009-03-18 00:01:39 +00:00
Tim Almdal
c92ef7aced Fix for ticket #101 2009-03-17 22:38:52 +00:00
Bharat Mediratta
6a2e8ec1cc Set $item and $tag in the Theme_View so that calls like $theme->item()
which fall through to calling &View::__get() have an lvalue to return,
else you can't return them by reference.

Also, don't show sidebar blocks for pages that don't have an item so
that the rss and tag modules don't break the search page.
2009-03-16 11:17:27 +00:00
Bharat Mediratta
f12f535749 Provide an empty sidebar by default 2009-03-16 07:59:28 +00:00
Bharat Mediratta
736d74d05f Clean up the login, maintenance login and required-top-level-login code.
We now have two clear and separate login approaches:
  login/ajax
  login/html

Choose the one that's appropriate.  Totally simplified the maintenance
page to be separate from the theme and dead simple, and use login/html
approach there.  Totally simplified the top level login
(login_page.html.php) to just be a login page, not the rest of the
chrome on the page and use the login/ajax approach there.

Don't use access::required in albums and then catch the exception,
instead use access::can and check the return code.

Improve the text for maintenance mode.
2009-03-16 04:33:45 +00:00
Bharat Mediratta
181737fb12 Remove the word 'album' from phpdoc. 2009-03-15 02:00:21 +00:00
Bharat Mediratta
c825ec4ffb Move references to "album" out of ORM_MPTT since it's supposed to be
implementation agnostic.
2009-03-15 01:17:25 +00:00
Tim Almdal
b82b60c91a Rename tag.html.php to dynamic.html.php as part of ticket #115
creating Dynamic Albums.  This name change reflects the usage better
and allows multiple dynamic albums (including tags) to use the same
page template.
2009-03-12 15:40:08 +00:00
Tim Almdal
7ade710258 Handle no prefix being set when building key/value table map 2009-03-12 04:00:49 +00:00
Tim Almdal
7dae7dc510 Strip down the loin page (not sure if this is what bharat had in mind) 2009-03-12 03:54:17 +00:00
Tim Almdal
d1f181da08 Attempt to reduce the chance of replacing text in sql statements that
is not a table name (but contained in braces) with the database prefix
by building and maintaining a cache of database tables and prefixes.
2009-03-12 03:20:13 +00:00
Tim Almdal
b9ee37f30e Override the ORM_MTTP::children and ORM_MTPP::descendants methods in
the item model and always pass the orderby fields.  This insures that
all children or descendant calls will respect the album sort order.
2009-03-09 14:38:25 +00:00
Bharat Mediratta
f32f1697c9 Get rid of Task_Definition types: they're not necessary. This
incidentally fixes the the problem that admin/maintenance tasks have
been broken.
2009-03-09 07:02:09 +00:00
Tim Almdal
39954ad0b7 Implement Sortable albums. Current sort fields include (Creation
Date, Update Date, Random Key, Title, Mime Type, Item Type & Number of views)
2009-03-08 16:29:01 +00:00
Bharat Mediratta
3c672bd865 Don't show the pager if there're no photos on the page. 2009-03-08 03:57:02 +00:00
Bharat Mediratta
23937ff135 Avoid using default task types. Require task::get_definitions() to
specify a single type and ask for it appropriately in
admin_maintenance.  Specify a type for every existing task.
2009-03-05 06:38:11 +00:00
Tim Almdal
7786bb09d3 Implement a Maintenance mode as per ticket: #15 2009-03-05 00:32:33 +00:00
Tim Almdal
c04ff8e02f Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
2009-02-28 06:37:28 +00:00
Tim Almdal
bd15853708 This implements table prefix for all the queries in core, user, exif,
tag, search, comment and notification modules (Ticket #68)
2009-02-27 21:07:18 +00:00
Tim Almdal
dc4f784558 * Refactor task management methods from admin_maintenance.php to
task.php
* Added a owner_id field to the task database
* Modified the admin maintenace to show the owner of the task
<<**** Requires a reinstallation of core ****>>
2009-02-27 16:28:20 +00:00
Tim Almdal
ab973bd871 Replace the string [table_name] with {$prefix}table_name. Slowly
working through setting up the database access to support table
prefixes. (Ticket#68)

Before going ahead, just wanted to check this approach... whatcha think?
2009-02-27 03:25:29 +00:00
Bharat Mediratta
5702556499 Minor style changes. 2009-02-26 01:56:00 +00:00
Andy Staudacher
8bba897a46 Changing from binary(16) to char(32) as translation message key.
Although less efficient as a storage / transmission / comparison format, it's friendlier on the eyes and universally supported.
2009-02-23 06:33:10 +00:00
Andy Staudacher
d47e4c9b43 Adding a l10n scanner - scans for t() and t2() calls, inserts the extracted messages into incoming_translations.
See: https://apps.sourceforge.net/trac/gallery/ticket/74
2009-02-19 07:20:26 +00:00
Andy Staudacher
50b783e3a5 Change i18n message key to include the plural form (to ensure that it's truly unique). 2009-02-12 07:11:24 +00:00
Chad Kieffer
9bbe8053c7 Added a show comment form button. Add comment form is revealed when the button is clicked. Used jQuery UI Effect to .highlight() to bring attention to newly added comments. Also added a named anchor to our block library to allow direct linking/scrolling to those blocks on the page. 2009-02-12 07:07:11 +00:00
Andy Staudacher
b2f20ff766 style fixes (style for method names, style for vars in locale.php) 2009-02-10 06:12:16 +00:00
Andy Staudacher
62f3724acb Adding UI for site language selection and user language preference. 2009-02-10 05:37:42 +00:00
Bharat Mediratta
78efd9bd3d Remove extra blank lines 2009-02-10 04:57:39 +00:00
Andy Staudacher
c2eee47465 Move site default_locale into DB (vars) and add a per user locale preference.
There's no UI to select the locale yet.
2009-02-10 02:37:16 +00:00
Andy Staudacher
dce6548431 Add local localization functionality. Local = no means to upload / download translations to a translation server yet.
- Added an outgoing_translations table to store translations from the local translation UI.
 - I18n class is checking incoming_ and outgoing_translations for translations, giving the latter priority.
 - Not handling plural strings in the translations UI yet.
2009-02-09 08:42:13 +00:00
Andy Staudacher
fa1f49d99a Adding translation UI. Not backed by any model yet (submissions are ignored).
The code is based on the l10n_client module from Drupal 6, by Gabor Hojtsy (http://drupal.org/user/4166).
2009-02-09 07:29:24 +00:00
Bharat Mediratta
b31c79a71f Fix a bug that I think I introduced in my last sendmail refactor where
I inverted the expectations on the result from mail() causing image
uploads to fail (even though the mail gets sent!)
2009-02-08 20:01:15 +00:00
Tim Almdal
8a738ed241 Correct comment on factory 2009-02-06 22:10:08 +00:00
Tim Almdal
80d4df3a4a Convert all item->type == "album" to item->is_album()
Convert all item->type == "photo" to item->is_photo()
2009-02-06 03:47:36 +00:00
Chad Kieffer
c166042313 Apply default link styles to links in dialogs, including the Forgot Password link. 2009-02-06 01:47:42 +00:00
Bharat Mediratta
1894a673bf Move test-related extensions to Sendmail into a subclass that we only
use in the test code (Sendmail_For_Test).
2009-02-05 07:51:11 +00:00
Bharat Mediratta
9e2b84d406 Minor code style changes. 2009-02-05 05:52:03 +00:00
Bharat Mediratta
cf45795525 Doh! Fix a bug in add_after() that caused it to drop the item we were adding it after. 2009-02-03 09:42:07 +00:00
Andy Staudacher
4842df9dc9 Do 1 DB query for l10n per HTTP request (per locale), not one per t() call. 2009-02-02 06:32:42 +00:00
Tim Almdal
41dbe5cf6c Changed the Sendmail library to allow the separator between mail
headers to be specified as a parameter.  The documents say that it
should be "\r\n".  Some sendmail programs seem to violate the
specification and get confused.  In these cases the header separator
is just "\n".

This change allows the header separator to be set by the a
configuration parameter.
2009-02-02 02:58:12 +00:00
Tim Almdal
d49484c9a6 Update the handling of the to field if the input field is an array 2009-02-01 03:55:40 +00:00
Tim Almdal
7239a4d8bc Add the ability to generate the id parameter on Menu Dialog. 2009-01-29 18:25:14 +00:00
Bharat Mediratta
ad82721c3b Fix an off-by-one issue-- the destination level is the target's child, not the target itself. 2009-01-29 03:17:09 +00:00
Bharat Mediratta
01d81ec6b4 Update the level when moving items 2009-01-29 02:57:29 +00:00
Bharat Mediratta
43b30c0ee2 Add Menu::add_after() 2009-01-28 19:25:01 +00:00
Tim Almdal
66fae63558 Create a sendmail library to wrap the call to the system sendmail
facility. Something quirky is happening in the first test, see comment
in code, but I couldn't figure it out.  Left a @todo for now.
2009-01-28 04:22:59 +00:00
Bharat Mediratta
eed57674f9 Add move support. Use the move icon in the quick pane. You can't
move an item into its own hierarchy, or into an album where you don't
have edit permission.
2009-01-24 05:14:44 +00:00
Bharat Mediratta
cd6629ad23 Add support for parenthetical grouping to Database queries. Turns out
that this is something they kind of want for Kohana :-)

Upstream ticket for this change: http://dev.kohanaphp.com/ticket/1070
2009-01-23 08:07:37 +00:00
Bharat Mediratta
3d1ea2904d Rename theme callback helpers from xxx_block to xxx_theme to make room
for us to rename the dashboard helper to be a block helper since
sidebar blocks are not just in the dashboard.
2009-01-18 05:01:00 +00:00