diff options
author | Nils Adermann <naderman@naderman.de> | 2011-11-18 14:37:57 +0100 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2011-11-18 14:37:57 +0100 |
commit | 10fa711f0046b667c3291c36f210f1c740fb685a (patch) | |
tree | 8cd74e34c10d1506e988706ce521283d8bf7e8cf /phpBB/includes/extension | |
parent | acc42bb2e9ea2556b47030c3c83c0bfac551eea5 (diff) | |
download | forums-10fa711f0046b667c3291c36f210f1c740fb685a.tar forums-10fa711f0046b667c3291c36f210f1c740fb685a.tar.gz forums-10fa711f0046b667c3291c36f210f1c740fb685a.tar.bz2 forums-10fa711f0046b667c3291c36f210f1c740fb685a.tar.xz forums-10fa711f0046b667c3291c36f210f1c740fb685a.zip |
[feature/extension-manager] Add more info on suffixes in extension finder
PHPBB3-10323
Diffstat (limited to 'phpBB/includes/extension')
-rw-r--r-- | phpBB/includes/extension/finder.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/includes/extension/finder.php b/phpBB/includes/extension/finder.php index ee8ff2ccf4..f3a9900a67 100644 --- a/phpBB/includes/extension/finder.php +++ b/phpBB/includes/extension/finder.php @@ -87,7 +87,11 @@ class phpbb_extension_finder } /** - * Sets a suffix all files found in extensions must match + * Sets a suffix all files found in extensions must match. + * + * There is no default file extension, so to find PHP files only, you will + * have to specify .php as a suffix. However when using get_classes, the .php + * file extension is automatically added to suffixes. * * Automatically sets the default_suffix if its value does not differ from * the current suffix. @@ -109,6 +113,10 @@ class phpbb_extension_finder /** * Sets a suffix all files found in the default path must match * + * There is no default file extension, so to find PHP files only, you will + * have to specify .php as a suffix. However when using get_classes, the .php + * file extension is automatically added to suffixes. + * * @param string $default_suffix A filename suffix * @return phpbb_extension_finder This object for chaining calls */ |