Tim Almdal
41c18929cd
Remove the duplicate query when searching as pointed out by joe7 on ticket #844
2010-06-11 15:54:08 -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
c050acf30a
Fix lots of warnings that pop up when we're in E_STRICT mode. They're
...
mostly issues around uninitialized variables, calling non-static
functions in a static context, calling Session functions directly
instead of on its singleton, passing non-variables by reference, and
subclasses not using the same interface as the parent class.
2010-01-31 16:07:41 -08:00
Bharat Mediratta
338af4a722
Database::escape_str() is now Database::escape().
2009-12-18 01:16:27 -08:00
Bharat Mediratta
94411b3658
Fix a bunch of places where we were using "= null" instead of "IS NULL".
2009-12-02 10:02:08 -08:00
Bharat Mediratta
d2cb217e20
Convert more database calls over to the new format
...
- admin/maintenance page loads, the rebuild thumbs/resizes task works
- Fixed up some conversion bugs in the Cache driver
2009-12-02 00:34:34 -08:00
Bharat Mediratta
dee3ee81e2
Database::orwhere() is now Database_Builder::or_where()
2009-11-26 20:25:32 -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
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
f0610ccaa0
Merge branch 'master' into talmdal_dev
2009-10-24 08:23:51 -07:00
Tim Almdal
571d7fe43c
When doing a search we need to "OR" the view permissions not "AND" them. Fixes ticket #805 .
2009-10-24 08:18:17 -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
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
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
Bharat Mediratta
b6c1ba7ea6
Use SQL_CALC_FOUND_ROWS instead of doing the search twice, for better performance.
...
Fixes ticket #835 , thanks Joe7!
2009-10-11 11:22:41 -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
Chad Kieffer
e1e8904e4a
Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's and classes in the login/reset password dialog.
2009-09-30 22:49:36 -06:00
Andy Staudacher
ddb84c84e1
Rename mark_safe() to mark_clean()
2009-08-31 00:42:18 -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
b4b638be44
Undo url helper changes - url methods no longer return a SafeString.
...
Adding SafeString::of_safe_html() calls where urls are passed as parameters to t() and t2().
2009-08-29 16:28:30 -07:00
Tim Almdal
eb90fc9e63
Remove debugging print statement in search.php
...
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-30 01:32:24 +08:00
Bharat Mediratta
44bc74edb9
Change search callbacks to use the event system, so move them out of
...
xxx_search helpers and into xxx_event helpers.
2009-07-28 20:30:34 -07:00
Romain LE DISEZ
350c1b0267
Use BOOLEAN instead of integer to describe the permissions :
...
- DENY = false
- ALLOW = true
- UNKNOW = null (for intent only)
- INHERIT = null (for cache)
Upgrade is not included for now.
(cherry picked from commit 719c59e040 )
2009-07-23 09:11:55 -07:00
Bharat Mediratta
788a458a11
Remove success logging. Only log on errors, otherwise the log is huge.
2009-07-19 13:43:06 -07:00
Tim Almdal
e7e2d99255
Revert "Revert "Add task logging to the "Update Search Index" task""
...
This reverts commit 5118afc959 .
2009-07-09 08:43:42 -07:00
Tim Almdal
5118afc959
Revert "Add task logging to the "Update Search Index" task"
...
This reverts commit 6ac5238b83 .
2009-07-09 08:39:00 -07:00
Tim Almdal
6ac5238b83
Add task logging to the "Update Search Index" task
2009-07-08 09:27:37 -07:00
Romain LE DISEZ
da09185a4b
SQL is case insensitive
...
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-06-24 06:05:56 +08:00
Romain LE DISEZ
297ac6ebd1
Improve compatibility with other RDBMS
...
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-06-24 06:05:48 +08:00
Bharat Mediratta
7aed923908
Restructure the module lifecycle.
...
Install: <module>_installer::install() is called, any necessary tables
are created.
Activate: <module>_installer::activate() is called. Module
controllers are routable, helpers are accessible, etc. The module is
in use.
Deactivate: <module>_installer::deactivate() is called. Module code
is not accessible or routable. Module is *not* in use, but its tables
are still around.
Uninstall: <module>_installer::uninstall() is called. Module is
completely removed from the database.
Admin > Modules will install and activate modules, but will only
deactivate (will NOT uninstall modules).
2009-05-26 05:28:59 +00:00
Bharat Mediratta
774e0b3737
Avoid complex inserts in available_tasks() to make admin/maintenance
...
run faster. This fixes ticket #235 .
Incidentally, refactor exif and search to use the same patterns
overall so that if you understand one, you understand the other and
they generally use the same strings for localization.
2009-05-20 06:10:14 +00:00
Bharat Mediratta
5495037a3d
Gee it's May already. Update copyright to 2009.
2009-05-13 20:04:58 +00:00
Andy Staudacher
ed7175092c
Refactor all translation strings that have ambiguous placeholders.
...
E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'.
Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with
preserving CSS classes too...
2009-03-21 07:44:46 +00:00
Tim Almdal
7bcab31f5d
Fix issue identified by security review... some table names where not
...
being translated.
2009-03-03 03:52:21 +00:00
Tim Almdal
2df75c11fb
Correct typo in variable name
2009-02-12 14:02:11 +00:00
Bharat Mediratta
58402f6fbf
Fix typo.. rebuild_index -> update_index
2009-01-17 05:27:15 +00:00
Bharat Mediratta
d568a1e9fd
Implement relevance ranked boolean searching on a full text index of
...
item and comment data. Whew!
It's not pretty yet. And you have to manually update the index
currently in admin/maintenance. But it works.
2009-01-17 00:52:50 +00:00