Daniel Rudolf
5cf47e65de
Various small improvements
2016-12-06 19:03:58 +01:00
Daniel Rudolf
ddf3da0391
Merge branch 'master' into pico-1.1
...
Conflicts:
.htaccess
config/config.php.template
content-sample/index.md
lib/Pico.php
2016-06-18 20:23:23 +02:00
Daniel Rudolf
94279c57f8
Improve phpDocs class docs
2016-05-23 15:13:56 +02:00
Daniel Rudolf
3d11b8a979
Replace is_a() function calls with instanceof operator
2016-03-11 19:07:45 +01:00
Daniel Rudolf
cd74b681f5
Fix scope isolated config includes
2016-03-06 20:47:25 +01:00
Daniel Rudolf
75d5081bfb
Use scope isolated includes for plugins & config
2016-03-06 20:06:24 +01:00
Daniel Rudolf
1c2f6a1b23
Update class docs
2016-01-25 19:31:53 +01:00
Daniel Rudolf
c3af40c3b9
PicoDeprecated: Fix LIB_DIR constant
2015-12-23 16:17:33 +01:00
Daniel Rudolf
5be2f8e597
Fix path handling on Windows
...
Fixes #307 ; thank you @bpgs for reporting!
2015-12-23 16:17:06 +01:00
Daniel Rudolf
93f7aaad8b
Class docs: Use default markdown table format
2015-12-07 15:17:39 +01:00
Daniel Rudolf
913cf3816f
Plugins: Improve onPagesLoaded() code styling
2015-11-27 19:31:22 +01:00
Daniel Rudolf
364b9066d9
PicoDeprecated: Use $GLOBALS superglobal instead of global keyword
2015-11-27 19:30:25 +01:00
Daniel Rudolf
840d41bca5
Improve type hinting
2015-11-25 04:07:46 +01:00
Daniel Rudolf
c0d30d20f8
Follow-up to c72ea0e
...
Don't use Pico::getAbsolutePath() for $config['content_dir'], just make sure the trailing slash exists. The config.php in Picos root dir should be interpreted exactly like in Pico 0.9 (the option didn't exist in Pico 0.8), thus the path isn't necessarily relative to Picos root dir
2015-11-14 16:50:32 +01:00
Daniel Rudolf
c72ea0ecec
PicoDeprecated: Sanitize content_dir and base_url options when reading config.php in Picos root dir
2015-11-13 19:10:30 +01:00
Daniel Rudolf
af8de56512
Fix typos
2015-11-04 19:50:44 +01:00
Daniel Rudolf
2a43b21bae
Enable PicoDeprecated if no plugins are loaded
2015-11-04 19:44:20 +01:00
Daniel Rudolf
8da62f4aad
PicoDeprecated: Making $config globally accessible again
...
This was dropped without a replacement with Pico 0.9. I checked all changes since Pico 0.8 manually, as far as I can tell there should be no more surprises regarding BC... Thanks @Lomanic for rubbing our nose in the fact that we should check this! I also added the missing changes of Pico 0.9 to changelog.txt
2015-10-31 01:03:24 +01:00
Daniel Rudolf
9a702415fb
Remove return $config
in config/config.php
...
I always thought that doing this is pretty unusual... But now it simply breaks BC - please refer to @Lomanic's [comment](https://github.com/picocms/Pico/pull/260#issuecomment-152610857 ). Using a return statement has no advantages, but increases the probability that something goes wrong (e.g. a clueless user removes the return statement). It was introduced with 23b90e2, but we never released it ([v0.9.1](4cb2b24fae/lib/pico.php (L188-L189)
)). Removing the return statement shouldn't cause any problems even for users which installed Pico in the meantime. As a result we don't break BC and moreover remove a prior BC break 😃
2015-10-31 00:32:08 +01:00
Daniel Rudolf
e6681ea903
Improve class docs
...
Also add some ToDos to inline docs
2015-10-29 18:07:45 +01:00
Daniel Rudolf
54ce5b9699
Various small improvements
...
- Improve class docs for phpDocumentor
- Add missing onPagesLoading() event to DummyPlugin
- Add some TODOs to the UPGRADE section of the docs
2015-10-29 02:55:30 +01:00
Daniel Rudolf
a654b1585b
phpDocumentor 2.8.5 currently doesn't support the Generic notations
...
This will likely be implemented as soon as the proposed PSR-5: PHPDoc is accepted
2015-10-27 01:48:58 +01:00
Daniel Rudolf
92af554d14
Improve inline code comments; preparing use of phpDocumentor
2015-10-27 01:39:28 +01:00
Daniel Rudolf
1cbf48af79
Split PicoDeprecated::onConfigLoaded() into multiple methods
2015-10-04 23:25:32 +02:00
Daniel Rudolf
2e15e112f7
Define deprecated constants before evaluating the config.php in Picos root dir
...
This prevents E_NOTICEs when using e.g. ROOT_DIR in a old config.php, so upgrading users are usually not bothered with this BC break
2015-10-04 18:50:16 +02:00
Daniel Rudolf
3f7b0998c6
Declare undefined $plugins variable
...
Thanks @Lomanic
2015-10-04 14:47:54 +02:00
Daniel Rudolf
241a52907e
Update inline code comments
2015-10-01 22:52:10 +02:00
Daniel Rudolf
fc7632b0ac
Overhaul init of Pico
...
This may break BC if you're using one of the now deprecated constants (e.g. ROOT_DIR)
2015-10-01 15:05:50 +02:00
Daniel Rudolf
13a50c7f2f
Don't change $pageData['id'], add ~dup1 to the array key only
2015-09-28 17:25:10 +02:00
Daniel Rudolf
a5755b0d39
Fix deprecated get_page_data and get_pages events
2015-09-28 17:13:26 +02:00
Daniel Rudolf
70f187fb45
Rename IPicoPlugin to PicoPluginInterface
2015-09-15 13:15:45 +02:00
Daniel Rudolf
70316eca87
Add PicoDeprecated, PicoParsePagesContent, PicoExcerpt
...
These plugins are crucial for backward compatibility
2015-08-28 18:30:19 +02:00