Tim Almdal
dc0d344b4a
Move the graphics::rotate to gallery_graphics::rotate to be consistent with the other gallery graphics functions.
2009-10-06 12:58:53 -07:00
Tim Almdal
2634a683b3
Revert "Create a gallery::plugin_path which returns the appropriate path to the module or theme. This checks for the existence of an application/modules or application/themes first."
...
This reverts commit e1e1461a77caf5bff457927f098366497de6ffff.
2009-10-04 10:12:22 -07:00
Tim Almdal
aa0529d557
Create a gallery::plugin_path which returns the appropriate path to the module or theme. This checks for the existence of an application/modules or application/themes first.
2009-10-04 10:12:21 -07:00
Chad Kieffer
3e6ba7acc3
Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-04 00:27:22 -06:00
Tim Almdal
4de412e722
Enable the administration screen for the sidebar. Fix for ticket #110 .
2009-09-30 14:26:32 -07:00
Tim Almdal
60d35b8992
Use the block_manager to manage site sidebar panels. Fixes ticket #110 .
...
* Extend block_manager to handle sidebar blocks. get_available has become get_available_admin_blocks, get_list becomes get_admin_list.
* Create new functions get_available_site_blocks which will look for gallery_block get_available_site_blocks.
* Refactor sidebar_blocks into a separate function and then call block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks
* Change the block_manager api so that the theme is passed into the get method. convert info to the new sidebar block approach
* Convert the user module to use the new sidebar block structure. remove the installers for info and image_block modules.
* Convert tag and rss modules to the new sidebar framework. reset the version number to 1 for info and image_block modules.
* Change the get_html method to ignore empty blocks and change the individual handlers to return an empty string if no block is generated
* Add a warning message if no sidebar blocks are active and provide a link to the admin page that configures the sidebar.
2009-09-30 07:31:12 -07:00
Tim Almdal
467b74c310
This path requires the upgrader to be run and applies the following changes:
...
* moves the composite method back into core
* requires that the operation be fully qualified i.e. gallery_graphics::resize
* caches the graphics rules on each request
2009-09-27 15:24:51 -07:00
Tim Almdal
b79129e365
Clone the photo::get_edit_form to the movies helper and use it to generate the movie edit form. Fixes ticket #726 .
2009-09-23 12:02:35 -07:00
Tim Almdal
faee4391a3
Remove a commented line I forgot to take out
2009-09-23 07:12:17 -07:00
Bharat Mediratta
91c99c9627
Simplify the "unchanged" status message.
2009-09-22 20:36:12 -07:00
Tim Almdal
bec620487a
Wrap the login form with a view in order to include a forgot password link. Fixes ticket #620
2009-09-22 09:48:24 -07:00
Tim Almdal
f1366d275e
Issue an information message if the user clicks "Save Settings" indicating that the key was not changed as it as identical. This addresses the obscure issue raised in ticket #756
2009-09-22 08:46:07 -07:00
Bharat Mediratta
e5a78d39ec
Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
...
Conflicts:
modules/gallery/controllers/albums.php
2009-09-21 21:29:13 -07:00
Bharat Mediratta
123afc9542
Set children_count to 0, photos have no children.
2009-09-21 21:22:07 -07:00
Bharat Mediratta
88350c5b88
Update the next/previous item calculations to match what we do in photos.php
...
Force the children_count to be zero, movies have no children.
Rename $photo to $movie everywhere.
2009-09-21 21:21:52 -07:00
Bharat Mediratta
9e6be40e31
Add viewable() protection to children() and children_count() calls.
...
This is not currently necessary (nor is it a security hole) because we
don't constrain permissions at the child level in the core, but it
makes our security audits easier and will enable the scenario where
somebody writes a module to add per-photo permissions.
2009-09-21 20:47:55 -07:00
Bharat Mediratta
a6581ede0b
Fix Item_Model::get_position() so that our sort is stable when the comparison
...
row has a null value in the sort field. Fix for #627
Note: this changes get_position() to take an Item_Model instead of an id!
2009-09-21 11:35:27 -07:00
Tim Almdal
9d76797b17
Changed the search module installer to explicitly specify MyISAM as the database type. Changed the packager to not remove the engine specification if the table is search_records. Fixes Ticket #774
2009-09-16 22:23:32 -07:00
Andy Staudacher
e168e0dfae
CSRF / auth fixes, golden data file checkpoint
2009-09-15 21:50:48 -07:00
Bharat Mediratta
caa2002d77
If there's a show= param and we can't find the given id in the current
...
album, just ignore the parameter.
2009-09-13 01:04:16 -07:00
Bharat Mediratta
7fddd2aced
Use abs_url() inside url::redirect() calls so that we don't just wind
...
up tacking onto the base url.
2009-09-10 21:31:50 -07:00
Bharat Mediratta
b8053c9ddf
Rename "after_installer" to "welcome_message" in the code to make it
...
clearer what its purpose is. Add some spacing in the theme for it
so that it's less cramped.
2009-09-10 21:10:20 -07:00
Bharat Mediratta
453fb76443
Actually use the slug when creating new albums (instead of just converting the
...
filename over).
2009-09-08 20:00:04 -07:00
Bharat Mediratta
cf0c8b6319
Minor tweaks to the url refactor.
2009-09-08 17:01:59 -07:00
Bharat Mediratta
2aad580f53
Move specialized (pretty) url generation back into Item_Model so that
...
we're not relying on overriding url::site() to do tricks around item
urls. This means that you won't get item urls by doing
url::site("albums/37"), for example, but it also means that we won't
get pretty urls where we don't expect them (like in the action of a
<form> element).
Incidentally, this will help us move over to using the slug format
because if you've got a bad character in a url, the edit forms will
now work on it since they'll be id based.
2009-09-08 13:44:52 -07:00
Bharat Mediratta
78a42d9b83
1. Actually set the slug to the new value in the controllers.
...
2. Fix up an issue where we were crashing if there were no conflicting rows
3. Amend Item_Model so that if you change the slug, it flushes the cache
for all children
2009-09-07 21:09:52 -07:00
Bharat Mediratta
f28353f4e1
Add the 'Internet Address' field to all items, along with proper
...
validation for the fields.
2009-09-07 21:01:51 -07:00
Bharat Mediratta
14ba8505cc
Don't allow users to take away their own edit permissions. If we
...
detect that they did, just give it back. There's no visible message
in that case.
2009-09-06 11:45:41 -07:00
Bharat Mediratta
d007f31686
Undo rest of the indentation issue accidentally created in 8312eb and
...
partially fixed in 2c30dc
2009-09-02 21:29:22 -07:00
Tim Almdal
2c30dc2d5b
fix a leading space that was causing the file_structure_test to fail
2009-09-02 14:28:00 -07:00
Andy Staudacher
b50d7f0d69
Fix bug #522 - Handle "save settings" correctly in the "share translations" form.
2009-09-01 11:11:22 -07:00
Bharat Mediratta
c887170555
Stay on the same page when editing albums/movies/photos. Fixes ticket
2009-08-31 21:10:22 -07:00
Andy Staudacher
8312eb116e
XSS review fixes (mostly adding missing html::mark_clean()) calls.
2009-08-31 02:12:01 -07:00
Andy Staudacher
ddb84c84e1
Rename mark_safe() to mark_clean()
2009-08-31 00:42:18 -07:00
Andy Staudacher
df38a890a6
Tabs to spaces cleanup
2009-08-30 18:07:13 -07:00
Andy Staudacher
effccfd41d
Change all instances of SafeString::of_safe_html() to html::mark_safe() in views.
2009-08-30 07:00:56 -07:00
Andy Staudacher
b9bd1681a3
Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.
2009-08-29 22:54:20 -07:00
Andy Staudacher
f327b4ad38
Fix link in l10n UI (for SafeString changes)
2009-08-29 14:24:52 -07:00
Andy Staudacher
a5dfc81a8f
Merge commit 'upstream/master'
...
Conflicts:
modules/akismet/views/admin_akismet.html.php
modules/comment/helpers/comment_rss.php
modules/gallery/helpers/gallery_rss.php
modules/gallery/libraries/I18n.php
modules/gallery/views/permissions_browse.html.php
modules/gallery/views/simple_uploader.html.php
modules/info/views/info_block.html.php
modules/organize/controllers/organize.php
modules/organize/views/organize.html.php
modules/organize/views/organize_album.html.php
themes/default/views/album.html.php
themes/default/views/movie.html.php
themes/default/views/photo.html.php
2009-08-29 14:17:48 -07:00
Andy Staudacher
c01ac42c46
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
...
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-29 12:48:40 -07:00
Andy Staudacher
a2e2a2178b
Using SafeString in album controller / view
2009-08-29 10:40:34 -07:00
jhilden
c234f9fd39
improved translations admin interface
2009-08-28 20:53:06 -04:00
jhilden
1855642bd1
improved UI for the languages admin
...
this should take care of bug #329
2009-08-28 16:19:41 -04:00
Tim Almdal
f27919aa1e
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-27 21:56:27 -07:00
Bharat Mediratta
a28dd09c4e
Properly deal with invalid images. This fixes ticket #611 which shows
...
a BMP masquerading as a .jpg causing us to be unable to rebuild
resizes and thumbnails. Now if that happens, we discard the file, log
it and move on.
2009-08-27 17:04:48 -07:00
Tim Almdal
377bdf2803
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-27 16:29:22 -07:00
Bharat Mediratta
4828db003f
Remove 'ENGINE=InnoDB' specification from tables that we create. Use
...
the system's default table specification. Fixes ticket #597 .
2009-08-27 15:47:54 -07:00
Tim Almdal
2da7f93784
Fix the setting of the mime type header. as per
...
http://gallery.menalto.com/node/90306
Thanks rWatcher
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-08-20 12:26:47 +08:00
Tim Almdal
c85df82fde
Fix the setting of the mime type header. as per
...
http://gallery.menalto.com/node/90306
Thanks rWatcher
2009-08-19 21:24:05 -07:00
Tim Almdal
bc42df35ee
Merge branch 'master' of git://github.com/gallery/gallery3
2009-08-19 05:14:05 -07:00