summaryrefslogtreecommitdiff
path: root/modules/comment
AgeCommit message (Collapse)Author
2010-01-17Updated for model based validation.Bharat Mediratta
2010-01-17Updated for model based validation.Bharat Mediratta
2010-01-17Add validation for guest_email and guest_url.Bharat Mediratta
2010-01-17Updated for model based validation.Bharat Mediratta
2010-01-17Move rules down into validate() and improve valid_author().Bharat Mediratta
2010-01-16Convert comment code over to model based validation.Bharat Mediratta
2010-01-16Don't pass MY_ORM::original() to update event handlers, since afterBharat Mediratta
parent::save() it'll be reset. Clone it first. This is an alternate fix for #978.
2010-01-09Fix for ticket #972 and more. In Kohana 2.4, ORM::delete_all ignores any whereTim Almdal
clauses and deletes all the entries in the table unless an array of id's are passed as the parameter. This fix used the Database_builder to specify any where conditions. Thanks psvo for find the first one. :-)
2009-12-21Add missing execute() call -- tests ftw!Bharat Mediratta
2009-12-21Updated for K24Bharat Mediratta
2009-12-06Update database queries.Bharat Mediratta
2009-11-26Convert some more Database::instance() calls to db::build() form.Bharat Mediratta
2009-11-26Convert another Database::instance() query over to using db::build()Bharat Mediratta
2009-11-26Modify the expiration code to work with db::build()Bharat Mediratta
2009-11-26Convert all DB where() calls to take 3 arguments.Bharat Mediratta
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-25ORM::orderby -> ORM::order_byBharat Mediratta
2009-11-25Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
Conflicts: modules/gallery/controllers/rest.php
2009-11-25Preliminary work to cut over to Kohana 2.4Bharat Mediratta
- Kohana::log() -> Kohana_Log::add() - Kohana::config_XXX -> Kohana_Config::instance()->XXX - Implement View::set_global in MY_View - Updated Cache_Database_Driver to latest APIs - ORM::$loaded -> ORM::loaded() - Updated item::viewable() to use K2.4 parenthesization
2009-11-25Refactor the comment module as part of ticket: #917 "Remove Rest Controller"Tim Almdal
* Remove the methods create, update, delete, get_edit_form as there are not used * Change the return when a comment is created to return the html for the new comment. This saves a second get request to down load the comment.
2009-11-18Rename g-pager to g-paginator after the recent pagination update.Chad Kieffer
2009-11-17Redesign the way that we consider page types to create buckets of pageBharat Mediratta
types, and a subtype for specifics. Currently the top level bucket collection, item, other Here are the core subtypes so far: collection: album, search, tag item: movie, photo other: login, reset, comment-fragment, comment It's legal to create new page_subtypes whenever you want. Use the appropriate page_type to get the coarse grain behavior that you want.
2009-11-16Make sure that we have a valid resource from the server side before weBharat Mediratta
fetch its url. Fixes ticket #888.
2009-11-15Fix ticket 890 (related to 879): Don't double-escape menu labels on the ↵Andy Staudacher
comment admin screen.
2009-11-15Use text::alternate() instead of hand-rolled even/odd code.Bharat Mediratta
2009-11-15Save/restore $_SERVER before/after tests to avoid contamination.Bharat Mediratta
Fix albums/photos tests to make sure we're really getting the HTTP_REFERER back.
2009-11-13Call for_js() on all menu labels, since they're SafeStrings. Fixes ticket #879.Bharat Mediratta
2009-11-12Re-generate the install.sql so that the keys of the block lists are an md5 ↵Tim Almdal
hash of the module_name:block_id. Also change the packager so we delete the _cache variable for the module gallery not core.
2009-11-08Call render() on the $menu, since we no longer use its __string()Bharat Mediratta
function to do implicit conversion.
2009-11-02Remove an extra trailing bracket.Tim Almdal
2009-11-01Convert the event handlers for the "identity provider changed" and ↵Tim Almdal
"user_deleted" events to use ORM or the Kohana query builder to build the database update calls instead of coding the sql directly.
2009-10-31Revert "Cleanup typo and change what is passwed into the event. pass the ↵Tim Almdal
group that the recaptch element should be attached to instead of the whole form. This allows the recaptch event to have no knowledge of the containing form." Revert "Generalize the adding of the recaptcha form by changing the name of the event to recaptch_add. This prevents us from having to keep modifying the recaptch module anytime we add a form that requires recaptcha." This reverts commits e45ea9359d6cb603be0bc28376d92883aa8d7c7e and bfafef95e8090b66f3322f73e532056b10ca116a.
2009-10-31Add identity_change handlers to resolve the ownership issues of comments, ↵Tim Almdal
subscription, items and tasks.
2009-10-30Patch to clean up loose ends when a user is deleted.Tim Almdal
* For items and tasks the owner id is set to admin * For notification subscriptions, the subscription is deleted * For comments, I've extracted the user name, email and url and set the guest_name, guest_email and guest_url columns while setting the author_id to identity::guest()->id Fix for ticket #777.
2009-10-29Use the identity interface admin_user to retreive the admin user.Tim Almdal
2009-10-29Cleanup typo and change what is passwed into the event. pass the group that ↵Tim Almdal
the recaptch element should be attached to instead of the whole form. This allows the recaptch event to have no knowledge of the containing form.
2009-10-29Generalize the adding of the recaptcha form by changing the name of the ↵Tim Almdal
event to recaptch_add. This prevents us from having to keep modifying the recaptch module anytime we add a form that requires recaptcha.
2009-10-28Normalize capitalization ticket #596Tim Almdal
2009-10-26Merge branch 'master' into talmdal_devTim Almdal
2009-10-25Moved admin-comments styles from admin theme to module.Chad Kieffer
2009-10-25Move comment and recaptcha CSS to their respective modules. Chad Kieffer
2009-10-22Change the name of identity library from Identity to IdentityProvider. ↵Tim Almdal
Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-19Merge branch 'master' into talmdal_devTim Almdal
Conflicts: modules/user/views/admin_users.html.php
2009-10-18Wrap all admin views in g-block and g-block content. This provides the means ↵Chad Kieffer
to visually separate the view's title and description from everything else. Primary admin view title should always be h1, and only one h1 per view. Removed some unused admin CSS id's.
2009-10-18Merge branch 'master' into talmdal_devTim Almdal
Conflicts: lib/gallery.common.css themes/admin_wind/views/admin.html.php themes/night_wind/views/sidebar.html.php themes/wind/views/sidebar.html.php
2009-10-17Drop our g-clearfix in favor of using jQuery UI's ui-helper-clearfix.Chad Kieffer
2009-10-16Remove all non Identity API methods from Identity.php. Created an ↵Tim Almdal
MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16Start simplifying the interface by moving the static methods from user.php ↵Tim Almdal
and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
2009-10-07Replaced most clear fix hacks with generic class.Chad Kieffer
2009-10-04Renamed more CSS selectors from gName to g-name.Chad Kieffer
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.