summaryrefslogtreecommitdiffstats
path: root/system
AgeCommit message (Collapse)AuthorFilesLines
2015-05-20optimize migrations class referenceftwbzhao1-3/+3
2015-05-13Merge pull request #3854 from leandrowkz/developAndrey Andreev1-1/+1
Fixed bug - using field_data() on Oracle databases
2015-05-13Fixed bug - using field_data() on Oracle databasesLeandro Mangini Antunes1-1/+1
When you're using oracle databases and want to retrieve column information through the function field_data($table) you get the following notice: - Notice: Undefined property: stdClass::$COLUMN_DEFAULT in system/database/drivers/oci8/oci8_driver.php on line 576; This happens because the oci8 driver tries to access a property that does not exist on query used to get field information. Checking the code we see a small validation to set default value, but the variable $default is not used. So we fix this bug by simply changing: $retval[$i]->default = $query[$i]->COLUMN_DEFAULT; to $retval[$i]->default = $default; Bug fixed. No more notices and the properly value is set.
2015-05-13[Cache]minor adjustments for save functionftwbzhao1-3/+1
2015-05-11Improve Cache Query String behaviourw0den1-6/+27
Typically, in most cases, we do not need to cache all the Query String variables. That's why I suggest to improve `Cache Include Query String` behaviour — allow the developer to independently specify which variables should be cached. For example, consider a query to the following URL address: http://site.com/search?q=query&page=2&session=abcd&utm_source=web In this case we don't need to build md5 hash for entire query string, because `session` or `utm_source` can be different for all users. The only variables which should be used for md5 hash should be `q` and `page`. Thus, in `config.php` we can use `$config['cache_query_string'] = array('page', 'q');`. So: `$config['cache_query_string'] = FALSE;` → Cache Include Query String is disabled `$config['cache_query_string'] = TRUE;` → Cache Include Query String is enabled for all `$config['cache_query_string'] = array('page', 'q');` → enabled only for specified variables
2015-05-11Fix an undefined variable error from fbde2798688ab99cfe3fdd22746d60f0877b2c27Andrey Andreev1-1/+1
2015-05-11Fix #3846Andrey Andreev1-6/+12
2015-05-07Revert "Issue/PR #3836"Andrey Andreev1-6/+2
This reverts commit 170ae282338584ebe257d2fb21101ccf84a3f800.
2015-05-07Issue/PR #3836Andrey Andreev1-2/+6
2015-05-02Bug Fix manually delete caching methodw0den1-1/+1
According to documentation, to manually delete cache for page "/foo/bar" we should run $this->output->delete_cache('/foo/bar'), but in this case MD5 hash will be calculated for "http://site.com//foo/bar" and this is why, we should pass $uri without beginning slash (ie, "foo/bar"). But the problem is that there is no way to delete cache for home page because: 1) $this->output->delete_cache('/') — MD5 hash will be calculated for "http://site.com//" and cache file will not be deleted. 2) $this->output->delete_cache('') — MD5 hash will be calculated for "http://site.com/%CURRENT_PAGE%" and again, cache file will not be deleted. Trimming the beginning slash, we enable ability to delete cache for home page by calling $this->output->delete_cache('/'). Also, this method will work as specified in the documentation.
2015-04-30Fix #3823Andrey Andreev2-2/+2
2015-04-29Add list_fields() support for SQLite3Andrey Andreev3-17/+45
2015-04-29Fix #3816Andrey Andreev1-1/+1
2015-04-29Merge pull request #3804 from refringe/feature/cache-defaultsAndrey Andreev1-20/+2
Cache Library Clean-up
2015-04-28Removed extra adapter validation. Adapter validation already happens in the ↵Tyler Brownell1-18/+2
system Driver library.
2015-04-27Adds error-level log messages when invalid adapters are set.Tyler Brownell1-0/+8
2015-04-24Reverts previous variable renaming and removes the foreach loop in favor of ↵Tyler Brownell1-24/+23
a simple if condition.
2015-04-23Output cache: Fixing a wrong timestamp. Credits to khoggatt (CodeIgniter forum).Ivan Tcholakov1-1/+1
2015-04-23Renames $_adapter to $_driver. It's what we call it everywhere else.Tyler Brownell1-14/+14
2015-04-23Cache Library Defaults FixedTyler Brownell1-15/+6
- Comments! - Updates the cache library to validate *both* adapters. - No longer attempts to set an undefined "memcached" class variable. - $key variable renamed to $driver_type (more descriptive).
2015-04-23Updates the fallback driver variable name to match the config option name.Tyler Brownell1-6/+6
2015-04-20Fix #3787Andrey Andreev1-1/+1
2015-04-20[ci skip] Remove whitespaceAndrey Andreev1-1/+1
2015-04-14Fix #3771Andrey Andreev1-10/+4
2015-04-14Fix #3773Andrey Andreev1-0/+24
2015-04-14[ci skip] Change Array helpers element(), elements() signaturesAndrey Andreev1-2/+2
Close #3767
2015-04-14Merge pull request #3770 from ftwbzhao/feature/ci/helperAndrey Andreev1-0/+1
[ci skip] plural() support for 'quiz' -> 'quizzes'
2015-04-14Merge pull request #3769 from ftwbzhao/developAndrey Andreev1-0/+4
[ci skip] Support for status codes 100, 101, 402 in set_status_header()
2015-04-14[helper]update plural regularftwbzhao1-0/+1
2015-04-14Status Code Definitionsftwbzhao1-0/+4
2015-04-12Close #3761Andrey Andreev1-1/+1
2015-04-09Merge branch 'develop' of https://github.com/bcit-ci/CodeIgniter into developftwbzhao13-30/+77
2015-04-09Merge pull request #3753 from ftwbzhao/feature/ci/3.0Andrey Andreev1-2/+2
[ci skip] Fix Cache/Redis get_metadata() for non-existing properties
2015-04-09[fix] redis get_metadataftwbzhao1-1/+1
2015-04-09use = instead of +=ftwbzhao1-1/+1
2015-04-08[ci skip] Fix comment typosAndrey Andreev2-2/+2
https://github.com/bcit-ci/CodeIgniter/pull/3748#issuecomment-90925762
2015-04-08typomult1mate1-1/+1
2015-04-07[feature] check redis auth failedftwbzhao1-1/+5
2015-04-06Disallow empty FV rules ... for consistencyAndrey Andreev1-7/+5
Related: #3736
2015-04-06Move strtolower() call from PR #3739 out of the loopAndrey Andreev1-3/+2
2015-04-06#3727 Lowercase $side variable for $this->db->like() in Query BuilderYahya Erturan1-0/+3
$this->db->like('name',$value,'AFTER') returns LIKE '%$value%'. Safer to lowercase in case of UPPERCASE habits.
2015-04-05Merge pull request #3730 from paralogizing/developAndrey Andreev1-1/+1
Consistent DIRECTORY_SEPARATOR usage in Zip::read_dir()
2015-04-04Fix #3733Andrey Andreev1-4/+1
Close #3734
2015-04-04Matched root_path's slashes with the name being replacedKyle Gadd1-1/+1
2015-04-01[ci skip] Update version numbersAndrey Andreev1-1/+1
2015-04-01Mitigate potential DoS attacks against hash_pbkdf2()Andrey Andreev1-2/+49
Related: #3720
2015-04-01Fixed typoAchraf Almouloudi1-1/+1
2015-03-31[ci skip] Fix a wrong docblock linkAndrey Andreev1-1/+1
2015-03-31Merge branch 'develop' of github.com:bcit-ci/CodeIgniter into developAndrey Andreev1-1/+1
2015-03-31[ci skip] Update version numberAndrey Andreev1-1/+1