summaryrefslogtreecommitdiff
path: root/inc/plugincontroller.class.php
Commit message (Collapse)AuthorAge
* Merge branch 'master' of https://github.com/yurii-github/dokuwiki into ↵Andreas Gohr2015-01-08
|\ | | | | | | | | | | | | | | | | | | yurii-github-master * 'master' of https://github.com/yurii-github/dokuwiki: fixes FASTCGI_UNEXPECTED_EXIT (error 0xff) in FastCGI/IIS for PHP5.6.x 64bit Conflicts: inc/plugincontroller.class.php
| * fixes FASTCGI_UNEXPECTED_EXIT (error 0xff) in FastCGI/IIS for PHP5.6.x 64bitYurii Korotia2015-01-03
| |
* | Remove error supression for file_exists()Andreas Gohr2015-01-07
|/ | | | | | | In an older version of PHP a file_exists() call would issue a warning when the file did not exist. This was fixed in later PHP releases. Since we require PHP 5.3 now, there's no need to supress any error here anymore. This might even give a minor performance boost.
* Merge remote-tracking branch 'origin/master' into scrutinizerissuesGerrit Uitslag2014-12-09
|\ | | | | | | | | | | | | | | | | Conflicts: inc/media.php inc/plugin.php inc/template.php lib/plugins/authplain/_test/escaping.test.php lib/plugins/syntax.php
| * use phpdocs deprecated notationGerrit Uitslag2014-10-21
| |
* | Many PHPDocs, some unused and dyn declared varsGerrit Uitslag2014-10-01
| | | | | | | | | | | | many PHPDocs some unused variables some dynamically declared variables declared
* | more scrutinizer issue improvementsGerrit Uitslag2014-09-29
| |
* | scrutinizer documentations issuesGerrit Uitslag2014-09-29
|/
* Merge pull request #380 from splitbrain/phpstrictAndreas Gohr2013-10-20
|\ | | | | Php strict
| * replace boolean conditional checks on possibly uninitialized vars with ↵Christopher Smith2013-10-16
| | | | | | | | \!empty/empty/isset as appropriate
* | phpdocs plugins util and controllerGerrit Uitslag2013-10-15
| |
* | improve visibility and PHPdocs of plugin controllerGerrit Uitslag2013-10-15
|/
* Added "global $conf" to make the conditions working.Matthias Schulte2013-08-25
|
* Only complain about invalid plugin names when plugins are loaded FS#2595Michael Hamann2012-09-18
| | | | | | | This fixes error messages about invalid plugin names for directories in the plugin directory which didn't contain any plugin. Now the message is only displayed for plugins which couldn't be loaded because of the invalid name.
* Move plugin name regex to a constant as suggested by @glenscMichael Hamann2012-09-10
|
* Less restrictive plugin name checkingMichael Hamann2012-09-09
| | | | | | | | This partially reverts de50cad65ae679a602e71adddffdd74df7ea3fbb as the strict check breaks existing plugins and this shouldn't be changed without prior discussion and a warning for plugin authors with some time to adjust their plugins. Now all characters that are valid in PHP class names except "_" are allowed.
* Display an error message when an enabled plugin has an invalid nameMichael Hamann2012-09-08
| | | | | | | This displays an error message when building the plugin list and an enabled plugin does not follow the plugin naming conventions. This should help plugin developers and admins understand why their plugins aren't working.
* Use hardcoded plugin loading error message as $lang isn't initializedMichael Hamann2012-09-08
| | | | | | | | When loading plugins, $lang might not be initialized yet, so use a hardcoded error message instead, especially as this error should only be displayed for the admin (and then fixed). This also removes the previously localized message, it might be re-added as part of the new extension manager.
* do not surpress any errors when loading plugin filesAndreas Gohr2012-05-20
| | | | | | When a plugin file exists, we can assume it is the correct file and load it without error supression. This makes it much easier to detect and debug problematic plugins.
* coding style updatesAndreas Gohr2012-03-16
|
* empty conf/plugins.local is created if not existingHakan Sandell2011-09-10
|
* Added comment in conf/plugins.local about how disabled files workHakan Sandell2011-09-10
|
* Removed tmp_bak array, no need for checking before save if anything changedHakan Sandell2011-09-10
|
* Now using io_savefile with locking and added headerHakan Sandell2011-09-10
| | | | when saving plugin.local
* Whitespace and brackets cleanupHakan Sandell2011-09-10
|
* Usage of 'disabled' file to control plugins deprecatedHakan Sandell2011-09-10
| | | | | Plugins with a disabled file will be treated as having an entry (=0) in conf/plugins.default.php overridable by conf/plugins.local.php
* Code cleanup documentation before mergeHakan Sandell2011-09-10
| | | | Function get_plugin_components() moved to extantion manager
* added new plugins config cascade and added plugin.info.txtPiyush Mishra2011-08-20
|
* Use autoloading for plugin classesAdrian Lang2011-06-06
|
* warn about wrongly installed pluginAndreas Gohr2011-03-19
| | | | | | | When a plugin is installed in the wrong directory, the class loading will fail. This patch tries to find the correct directory from the plugin.info.txt (using the base key) and give a hint to the user on how to fix this.
* Honor conf[pluginmanager] again (closes FS#1856)Adrian Lang2011-02-06
|
* don't load disabled plugins FS#1990Andreas Gohr2010-08-29
|
* Allow plugins to specify that they have to be instantiatedAdrian Lang2010-03-29
| | | | | | | | Plugins may return false in isSingleton to let plugin_load return a new instance every time it is called. Renderer plugins are not loaded with $new set to true, but instead specify themself that they are not singletons. This behaviour allows the odt renderer to keep working (see #1598).
* update ignore criteria when populating master plugin listChristopher Smith2010-02-10
|
* Coding Standard CleanupAndreas Gohr2009-10-20
| | | | | | Ignore-this: 259cb5773c3144c6c706d87298dcf674 darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
* do not use error supression but check for file existance in plugin controllerAndreas Gohr2009-02-20
| | | | | | Ignore-this: b796ce104bb86a05e8bca1c900ef99d8 darcs-hash:20090220084815-7ad00-74aa7c875606a5dfdbd257caa56bf092152e3019.gz
* suppress errors when trying to load a non existant pluginAndreas Gohr2009-02-16
| | | | | | Ignore-this: 21eafbc145c8abfeb8450d9a1234bae1 darcs-hash:20090216180324-7ad00-2628f381cee27f24f120016a970aabca7d853c7c.gz
* Fix for FS#1598 - allow a plugin to be a singleton if it so desiresChris Smith2009-02-11
| | | | | | | | | | | | | | | DokuWiki typically instantiates a plugin once and reuses that instance whenever the plugin is required. However on some occasions DokuWiki will request a new instantiation of a plugin. This particularly applies to render plugins. This patch allows a plugin to force DokuWiki to reuse the existing instance. If a plugin wishes to only be instantiated once then it should implement an "isSingleton()" method and that method should return boolean true. darcs-hash:20090211143520-f07c6-5c1a33dbed55f0b196a204745fe3139f3c7c0aa9.gz
* fix disable plugin mechanism revert FS#1585Bruno De Fraine2009-02-03
| | | | | | | | | | Ignore-this: bd7e66b737e8847373e071f0b23d96d7 The mechanism for disabling plugins was not reverted completely: there were still references to the plugin.disabled directories in the Doku_Plugin_Controller class, this patch fixes this. darcs-hash:20090203194307-8a46b-4bb1c41e530edc9fde06ca61898a9a465d5b6d98.gz
* reverted plugin disabling method back to old behaviourAndreas Gohr2009-01-27
| | | | | | | | | | | | | | | | | | Ignore-this: b5fadadeee9de8e52c41c056cf62be6d With this patch plugins are now disabled by placing a disabled file in the plugin directory again. Even though renaming plugin directories is the method with the fewest disk accesses it makes a lot of trouble with code revision control systems and, more important, Linux package management systems. Future versions of DokuWiki may use a central config file instead. This patch also fixes the problem with the plugin manager not checking the return values of the pugin_(dis|en)able functions correctly. darcs-hash:20090127182521-7ad00-62018a546d49d57582d93298c8228fd71601a5e8.gz
* move Doku_Plugin_Controller class out of pluginutils and into its own fileChris Smith2009-01-22
(this allows it to be include and extended in preload.php) darcs-hash:20090122065852-f07c6-4e5069f3100174a396627c486561ff079c7a02e1.gz