aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Updater.php
Commit message (Collapse)AuthorAgeFilesLines
* Add a persistent 'shorturl' key to all linksArthurHoaro2016-12-121-0/+3
| | | | | | | All existing link will keep their permalinks. New links will have smallhash generated with date+id. The purpose of this is to avoid collision between links due to their creation date.
* Apply the new ID system accros the whole codebaseArthurHoaro2016-12-121-5/+1
|
* Update method to use the new ID system, which replaces linkdate primary keys.ArthurHoaro2016-12-121-2/+44
| | | | | creation and update dates are now DateTime objects. Since this update is very sensitve (changing the whole database), the datastore will be automatically backed up into the file datastore.<datetime>.php.
* LinkDB: update datastore method namesVirtualTam2016-10-201-1/+1
| | | | | | Relates to https://github.com/shaarli/Shaarli/issues/95 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Minor code cleanup: PHPDoc, spelling, unused variables, etc.ArthurHoaro2016-10-201-1/+1
|
* Fix update method escapeUnescapedConfigArthurHoaro2016-08-021-2/+2
| | | | | | | * Actually run it * unit tests Fixes #611
* Rename configuration key for better sectionsArthurHoaro2016-06-111-5/+5
|
* ConfigManager no longer uses singleton patternArthurHoaro2016-06-111-28/+29
|
* Remove remaining settings initialization in index.phpArthurHoaro2016-06-111-0/+23
| | | | Except for those which require external data (timezone and $_SERVER).
* Rename configuration keys and fix GLOBALS in templatesArthurHoaro2016-06-111-7/+14
|
* Adds ConfigJson which handle the configuration in JSON format.ArthurHoaro2016-06-111-1/+42
| | | | Also use the Updater to make the transition
* Replace $GLOBALS configuration with the configuration manager in the whole ↵ArthurHoaro2016-06-111-17/+13
| | | | code base
* Refactor filter in LinkDBArthurHoaro2016-03-251-1/+1
| | | | | | | | * search type now carried by LinkDB in order to factorize code between different search sources. * LinkDB->filter split in 3 method: filterSearch, filterHash, filterDay (we know what type of filter is needed). * filterHash now throw a LinkNotFoundException if it doesn't exist: internal implementation choice, still displays a 404. * Smallhash regex has been rewritten. * Unit tests update
* Add exclusion in tag searchArthurHoaro2016-02-151-0/+15
| | | | | | | | | | | * Searching '-mytag' will now exlude all shaares with 'mytag' tag. * All tags starting with a '-' are renamed without it (through the Updater). * Unit tests. Minor code changes: * LinkDB->filter() can now take no parameters (get all link depending on logged status). * tagsStrToArray() is now static and filters blank tags.
* Introduce the Updater class whichArthurHoaro2016-02-151-0/+228
* contains methods designed to be run once. * is able to upgrade the datastore or the configuration. * is based on methods names, stored in a text file with ';' separator (updates.txt). * begins with existing function 'mergeDeprecatedConfigFile()' (options.php).