aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Updater.php
Commit message (Collapse)AuthorAgeFilesLines
* namespacing: \Shaarli\Exceptions\IOExceptionVirtualTam2019-01-121-0/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: apply phpcbf to application/VirtualTam2018-12-021-1/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add a button to set links as stickyArthurHoaro2018-10-061-0/+20
| | | | | | Meaning that they always appear on top of all links Fixes #186
* Fix issue 'You are not authorized to add a link' with thumbnails enabledArthurHoaro2018-08-101-1/+1
| | | | | | Do not try to alter the datastore by updating thumbnails if the user isn't logged in. Also, do not enable thumbnails if PHP GD extension is not installed/loaded
* Bunch of improvement for thumbnails integration:ArthurHoaro2018-07-171-1/+1
| | | | | | | | - add a default thumb size value (125x90px) - improve private vertical bar visual, especially with thumbnails - translations - add a sync thumbs button in tool and empty picwall page - fixes WT download mode in JSON config
* Thumbnails: add a common mode to only retrieve thumbs from popular media ↵ArthurHoaro2018-07-051-2/+3
| | | | websites
* Add a page to update all thumbnails through AJAX requests in both templatesArthurHoaro2018-07-051-2/+23
|
* Update thumbnail integration after rebasing the branchArthurHoaro2018-07-051-0/+12
|
* Make max download size and timeout configurableArthurHoaro2018-03-071-0/+26
| | | | Fixes #1061
* Add a filter to only display public linksArthurHoaro2017-12-161-0/+12
| | | | | | When the key filter is clicked once, it only displays private link. When it is clicked on again, it becomes red and only public links are displayed. Another click and all links are displayed. The current visibility status is shown in the search banner Fixes #1030
* Return true after update ReorderDatastore to complete itArthurHoaro2017-11-111-0/+1
|
* Merge pull request #962 from ArthurHoaro/feature/perfs2ArthurHoaro2017-10-281-0/+8
|\ | | | | Performances: reorder links when they're written instead of read
| * Performances: reorder links when they're written instead of readArthurHoaro2017-09-021-0/+8
| | | | | | | | relates to #891
* | Shaarli's translationArthurHoaro2017-10-221-4/+4
| | | | | | | | | | | | | | | | | | * translation system and unit tests * Translations everywhere Dont use translation merge It is not available with PHP builtin gettext, so it would have lead to inconsistency.
* | Rename shaarli_version constant to uppercaseArthurHoaro2017-10-011-2/+2
|/
* Use the new 'default' theme... as defaultArthurHoaro2017-05-091-15/+0
| | | | Fixes #866
* Reset the history file due to datetime format changeArthurHoaro2017-05-071-0/+11
|
* Merge pull request #816 from ArthurHoaro/project/master-versionArthurHoaro2017-03-221-0/+44
|\ | | | | Use 'dev' version on the master branch
| * Add an updateMethod to match the current remote branch for updatesArthurHoaro2017-03-121-0/+44
| |
* | Fixes #304: use atom feed as defaultArthurHoaro2017-03-111-0/+16
|/ | | | RSS feed is still available with the setting set to false
* Fix #773: set Piwik URL protocolArthurHoaro2017-03-111-0/+17
|
* application: introduce the Shaarli\Config namespaceVirtualTam2017-03-041-0/+2
| | | | | | | | | | | Namespaces have been introduced with the REST API, and should be generalized to the whole codebase to manage object scope and benefit from autoloading. See: - https://secure.php.net/manual/en/language.namespaces.php - http://www.php-fig.org/psr/psr-4/ Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add markdown_escape settingArthurHoaro2017-02-281-0/+23
| | | | | | | | | | | | | This setting allows to escape HTML in markdown rendering or not. The goal behind it is to avoid XSS issue in shared instances. More info: * the setting is set to true by default * it is set to false for anyone who already have the plugin enabled (avoid breaking existing entries) * improve the HTML sanitization when the setting is set to false - but don't consider it XSS proof * mention the setting in the plugin README
* Set the vintage theme by default for the time beingArthurHoaro2017-02-271-0/+14
|
* Fixes #775: LinkDB do not access LinkDB before ID system migrationArthurHoaro2017-02-041-15/+15
| | | | | | To access LinkDB items with its ArrayAccess implementation, the IDs must be consistent, which isn't the case before `updateMethodDatastoreIds()` execution. v0.6.4 method `updateMethodRenameDashTags()` was accessing it, so an upgrade <0.6.4 to >0.8.x was failing. This just move the minor update `RenameDashTags` after the IDs update.
* Move user.css to data folderArthurHoaro2017-01-141-0/+16
|
* Cleanup: use safe boolean comparisonsVirtualTam2017-01-071-1/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Updater: keep custom theme preference with the new theme settingArthurHoaro2017-01-051-0/+29
|
* Prepare settings for the API in the admin page and during the installArthurHoaro2016-12-121-0/+23
| | | | | | | | API settings: - api.enabled - api.secret The API settings will be initialized (and the secret generated) with an update method.
* 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).