Johan Cwiklinski
6746792bdf
Drop short_tags
2018-05-19 17:01:37 +02:00
Bharat Mediratta
9396342250
Drop the requirement to have the install() function set the module
...
version. It's redundant. Fixes #1985 .
2013-01-31 19:55:53 -05:00
Bharat Mediratta
49f6ce2d94
gallery.menalto.com -> galleryproject.org
...
codex.gallery2.org -> codex.galleryproject.org
Fixes #1957 .
2013-01-22 18:39:24 -05:00
Bharat Mediratta
d45a737779
Update copyright to 2013. Fixes #1953 .
2013-01-21 01:22:01 -05:00
Bharat Mediratta
ce209b9eaa
Fix a typo leading to notification module not sending any text. Fixes #1862 .
2012-05-15 16:10:49 -07:00
Bharat Mediratta
bf2bb3e1ea
Update copyright to 2012. #1822
2012-02-27 09:48:23 -08:00
Bharat Mediratta
c07af35a19
Oops, fix broken codex urls. For #1698 .
2011-04-23 14:53:39 -07:00
Bharat Mediratta
ba20d5a500
Oops, this is the rest of the modules and themes for #1696 and #1698 .
2011-04-23 14:46:07 -07:00
Bharat Mediratta
423daa52d5
Update copyright to 2011.
2011-01-21 23:01:06 -08:00
Bharat Mediratta
b42fcb9cda
Use db::expr instead of "new Database_Expression". Resolves #1560 .
2010-12-28 23:10:05 -08:00
Bharat Mediratta
dff1a53696
All modules should be named Xxx_Core for extensibility. Fixes #1458 .
2010-10-25 21:05:31 -07:00
Bharat Mediratta
d7edbc211f
Oops, forgot to update install() with the locale change that I made in
...
cc399bf4f0 . No permanent harm done,
though.
2010-09-08 19:35:10 -07:00
Bharat Mediratta
cc399bf4f0
Track the language of the user receiving the notification and send the
...
email in that user's language. Incidentally, send one email per
recipient, else we're leaking email addresses which is bad for
community sites. Bump notification module to v2 in the process.
Fixes ticket #1287 .
2010-09-06 16:20:37 -07:00
Bharat Mediratta
7a5301ba05
Notifying on item_updated is overbroad. Fix for ticket #1286 .
2010-08-25 10:09:14 -07:00
Bharat Mediratta
ff1d8aea2f
We use UTF-8 everywhere. Fixes ticket #1285 .
2010-08-15 01:59:54 -07:00
Bharat Mediratta
c3c2b45280
Update the copyright to 2010. It's only 3 months into the year :-)
2010-03-03 10:15:34 -08:00
Bharat Mediratta
d388e4bb86
Refactor away the "display_all" construct in User_Profile_Controller.
...
"display_all" is too coarse, and we should be letting event handlers
make the appropriate decision on what to display and when. This
duplicates some code, but it's now very clear in the event handlers
what's getting shown.
Throw a 404 if we try to view the user profile for a missing user.
The only feature change in this should be that we now display the
name, full name and website for a user to any other registered user,
which makes sense since these are typically public fields.
Don't show any of the edit buttons unless identity::is_writable()
2010-02-19 11:40:49 -08:00
Tim Almdal
cc1d25ae0a
remove debugging statement
2010-02-04 07:46:10 -08:00
Tim Almdal
865995305c
Add the active notifications and rest api key to user profile page.
2010-01-24 20:14:01 -08:00
Bharat Mediratta
2c2c77ea39
Remove debug code.
2010-01-16 00:19:35 -08:00
Bharat Mediratta
9f03d36d6e
Don't use MY_ORM::original() here since the values may not have
...
changed since the last save. Instead, use the original ORM passed in.
2010-01-16 00:10:55 -08:00
Tim Almdal
639f1e741a
Put quotes around the item titles in all the messages and more importantly actually display the original's title properly. Fixes ticket #966 , but does now show us ticket #978
2010-01-12 11:42:31 -08:00
Tim Almdal
a11bf29507
Fix for ticket #972 and more. In Kohana 2.4, ORM::delete_all ignores any where
...
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. :-)
2010-01-09 23:57:16 -08:00
Bharat Mediratta
a6dbd25cf1
Update database queries.
2009-12-06 21:38:09 -08:00
Bharat Mediratta
d0874a65ac
Use:
...
->select(new Database_Expression("DISTINCT `email`"))
instead of:
->select("DISTINCT email")
This is not the perfect API. http://dev.kohanaphp.com/issues/2396 is
the upstream tracking ticket for a better API.
2009-12-02 10:43:06 -08:00
Bharat Mediratta
96b00d6cfe
Convert some more Database::instance() calls to db::build() form.
2009-11-26 21:14:54 -08:00
Bharat Mediratta
1fd0e14359
Convert all DB where() calls to take 3 arguments.
...
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-26 12:09:04 -08:00
Bharat Mediratta
22823df220
Update ORM::where() calls to take 3 args.
2009-11-26 11:43:20 -08:00
Bharat Mediratta
2e420522ec
Preliminary work to cut over to Kohana 2.4
...
- 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-25 13:22:24 -08:00
Tim Almdal
376eb5673f
Convert the event handlers for the "identity provider changed" and "user_deleted" events to use ORM or the Kohana query builder to build the database update calls instead of coding the sql directly.
2009-11-01 10:22:56 -08:00
Tim Almdal
903b5f6f67
Add identity_change handlers to resolve the ownership issues of comments, subscription, items and tasks.
2009-10-31 14:23:05 -07:00
Tim Almdal
90465012d1
Patch to clean up loose ends when a user is deleted.
...
* 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-30 14:23:57 -07:00
Tim Almdal
7ea13b3869
Normalize capitalization ticket #596
2009-10-28 12:15:52 -07:00
Tim Almdal
3c936d661a
Change the name of identity library from Identity to IdentityProvider. 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-22 13:11:03 -07:00
Tim Almdal
b528fbde57
Change this files to use the API instead of referencing the group tables directly
2009-10-21 11:50:42 -07:00
Tim Almdal
78ee4193b7
Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16 10:06:58 -07:00
Tim Almdal
bc241e44c2
Cleanup merge of user/group helpers into Identity interface. Reduce redundant code in the user module and remove references to the Identity helper from the user module as the user module should be able to access things directly. Simplify the get_user_list api method to just accept an array of ids to return user objects for.
2009-10-16 08:55:26 -07:00
Tim Almdal
00eacd659f
Start simplifying the interface by moving the static methods from user.php 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-16 08:53:31 -07:00
Tim Almdal
1ee7d24766
Add support for the in filter to get_user_list and get_group_list. Convert the notifications to use user::get_user_list instead of accessing the table directly.
2009-10-09 01:27:26 -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
Bharat Mediratta
882a6d9a5d
Convert a couple of instances of Item_Model::url(array(), true) to Item_Model::abs_url()
2009-09-10 21:33:04 -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
2ca20e8ab1
Check for subscribers *before* going through the process of creating
...
and rendering the email message. Fixes ticket #724 .
2009-09-08 21:19:00 -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
Andy Staudacher
8312eb116e
XSS review fixes (mostly adding missing html::mark_clean()) calls.
2009-08-31 02:12:01 -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
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
Bharat Mediratta
acce8cbafd
Log the actual exception details, before swallowing the exception.
2009-08-29 08:47:44 -07:00
Bharat Mediratta
6dcfdb6432
Fix a bug in notification where were using get() instead of current()
...
to get the first item in an ORM result set.
2009-08-28 12:42:37 -07:00