Commit Graph

1018 Commits

Author SHA1 Message Date
Bharat Mediratta
acfb81d940 Oops, we need UNIX_TIMESTAMP() instead of NOW() 2009-03-20 08:25:33 +00:00
Bharat Mediratta
6df1dffed1 Do some data normalization so that the install files will have stable
ordering and known values.  This way subsequent packaging runs won't
have any differences unless there's a real data change.
2009-03-20 08:22:57 +00:00
Bharat Mediratta
06baa24dd6 Set our version to 3.0 Alpha 3 and add 'logs' as a dir we create at install time 2009-03-20 08:21:43 +00:00
Chad Kieffer
0695be1ccf Restore $extra_attrs in img tags. Roll back to using .gThumbnail in quick pane. 2009-03-20 04:39:27 +00:00
Bharat Mediratta
61d8a143ea Rejigger the way we do reinstalls while Kohana is running.
core_installer::install() now takes an $initial_install param that
allows us to enforce that we're doing a clean install.  Use this in
both the scaffolding and the unit test code.

Greatly simplify the scaffolding uninstall/reinstall code.
2009-03-19 02:35:51 +00:00
Bharat Mediratta
0b721258f4 Fix syntax errors. 2009-03-19 01:47:42 +00:00
Tim Almdal
ccb02b001f Fix for ticket #155. Delete the item record before unlinking the
files.
2009-03-18 22:42:31 +00:00
Tim Almdal
6b5d395d59 Fix for ticket #153. The sort column was not not initialized for
movies or photos.  Turns out that when you go to delete, ORM tries to
check for children and apply the sort order.
2009-03-18 19:39:34 +00:00
Tim Almdal
4da37ecb23 Fix for ticket #152. Somewhere along the line we we stopped using
gThumbnail as a class.  Changed the selector to select the image from
".gThumbnail" to ".Quick img"
2009-03-18 18:55:48 +00:00
Tim Almdal
b1ecf3ca4d This is the real fix to ticket #154 2009-03-18 17:02:21 +00:00
Tim Almdal
30cb537c31 Fix failed unit test: private methods are required to begin with an underscore(_) 2009-03-18 16:45:18 +00:00
Tim Almdal
d2006069bb Remove trailing ?> 2009-03-18 16:36:57 +00:00
Tim Almdal
e07c2dfcd5 Fix for ticket #154: Remove the raw count and use the ORM wrapper. 2009-03-18 16:33:16 +00:00
Chad Kieffer
591403d794 Added rotate cc and ccw icons to themeroller theme and css to default theme, applied to quick pane rotate buttons. Hope that jQuery UI includes rotate icons eventrually so we don't have to maintain this. 2009-03-18 06:15:37 +00:00
Tim Almdal
9d65379160 Remove semi-colons from single sql statements and correct anoter
instance of {items` which won't get prefixed properly
2009-03-18 03:36:18 +00:00
Tim Almdal
3a5de959b9 Fix for ticket #143 2009-03-18 02:49:04 +00:00
Andy Staudacher
4971db37d4 Fix for ticket 142: Choose plural form "other" for count == 0 (unless the locale has a specific plural form for zero) 2009-03-18 02:40:16 +00:00
Tim Almdal
6e84c132a2 Fix for ticket #142. Valiant: u might want to check the implications
of this.
2009-03-18 01:58:59 +00:00
Andy Staudacher
222f6e2e23 Functional l10n_client / server interaction:
- Get / verify API Key from l10n server
 - Submit translations
 - Fetch translations / updates

Reference: Tasks: 75, 76, 55

TODO: Move out of core (and a series of other tasks).
2009-03-18 00:53:44 +00:00
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
3f87c16223 Fix missing preambles 2009-03-17 18:33:51 +00:00
Bharat Mediratta
1ab5a76924 Treat calls to install() with TEST_MODE set to be initial installs. At least for now. 2009-03-17 18:17:55 +00:00
Bharat Mediratta
a83db20fe2 Fix minor correctness issues 2009-03-17 18:09:21 +00:00
Chad Kieffer
920804bd47 Style breadcrumb in photo upload dialog 2009-03-17 05:57:40 +00:00
Bharat Mediratta
0f5ccc9aa3 Switch from using SimpleUploader to using swfUpload as our flash based
uploader.  This is modeled on
http://codex.gallery2.org/Gallery3:Upload_UX but is not yet complete.

Notes:
* Changed #gProgressBar to .gProgressBar to support multiple progress
  bars on the same page
* Added a bunch of CSS to the "needs a home" section in
  themes/default/css/screen.css
2009-03-17 05:20:37 +00:00
Bharat Mediratta
e92e6d4da4 Oops, I used the wrong resize variables in my last change. 2009-03-16 11:33:14 +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
8458eba279 Switch the locale::$locales data structure to be an array instead of a
stdClass because we're not allowed to asort() stdClass objects in PHP
5.2.6.
2009-03-16 09:08:12 +00:00
Bharat Mediratta
1a2402dbd8 Fix bug, $active -> $site. 2009-03-16 08:59:38 +00:00
Bharat Mediratta
c0d8216037 Initialize some variables 2009-03-16 08:53:20 +00:00
Bharat Mediratta
1055fe6be3 Revive the install() and uninstall() functions in Scaffold_Controller
because we need those to make a package.

Fix the packaging code to ignore whatever prefix is being used by the
developer who is doing the packaging.

Update the install.sql file (there were a variety of small
inconsistencies, probably from hand-editing.  Don't hand-edit this
file!)
2009-03-16 08:49:55 +00:00
Bharat Mediratta
6f0ddb4057 Set the sort_column and sort_order for the root album 2009-03-16 08:48:34 +00:00
Bharat Mediratta
eac4e72a3b Oops, fix a typo. 2009-03-16 08:34:20 +00:00
Bharat Mediratta
2c3ab56a42 Move security into the constructor. Protecting the index() call is easily bypassed. 2009-03-16 08:29:35 +00:00
Bharat Mediratta
c05a1103e7 Use a query to get the database version. Newer versions of PHP bomb
if you're using mysqli, and it asks for a connection which we can't easily get
from Kohana.
2009-03-16 08:25:49 +00:00
Bharat Mediratta
54e07d0769 Get rid of the extra robust code we had in here to make the
scaffolding work when the Gallery wasn't installed yet.  Now we force
users through the installer.
2009-03-16 08:05:07 +00:00
Bharat Mediratta
df5f035ed1 Get rid of obsolete/undefined $block_adder 2009-03-16 08:02:16 +00:00
Bharat Mediratta
c3e70ecfa6 Initialize $result in get_html() 2009-03-16 08:01:46 +00:00
Bharat Mediratta
f12f535749 Provide an empty sidebar by default 2009-03-16 07:59:28 +00:00
Bharat Mediratta
144b8f4f47 Don't count on the uri having 3 components; that breaks on newer versions of PHP. 2009-03-16 07:45:32 +00:00
Bharat Mediratta
16b1df4f67 Illegal use of $this in static function site(). Replace with $theme. 2009-03-16 07:40:57 +00:00
Bharat Mediratta
f25ff87ba9 Remove unnecessary __get() function 2009-03-16 07:17:15 +00:00
Chad Kieffer
c377ffc2a5 Ticket #97. Applied button css where missing. Minor form css improvements. 2009-03-16 05:50:05 +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
Tim Almdal
0bc64efa4a Thin down the scaffolding code so that all that is there is the test
data creation and the packaging code.  The rest ofthe functionality is
either no longer required, or moved to the developer module (MPTT
Tree).
Also provide checking for the active user to be an admin.
2009-03-16 03:50:57 +00:00
Bharat Mediratta
a89541545f Remove automatic load of atom module. 2009-03-15 22:54:19 +00:00
Tim Almdal
abdab49aef Move the start/stop translating menu item to the admin menu 2009-03-15 22:45:16 +00:00
Tim Almdal
b4f8d824f7 Remove profiling and debugging from the scaffold info screen. 2009-03-15 22:05:38 +00:00
Tim Almdal
bf4cd1b813 Move profiling and debugging out of the scaffolding and into the
developer module.
2009-03-15 20:35:24 +00:00