Commit 14cb5c068d8624a3261008998a09bfb9dc73a572
1 parent
1f4fb4cc
PT:2492070 : First Login wizard updated.
Committed by: Jarrett Jordaan Reviewed by: Megan Watson
Showing
1 changed file
with
6 additions
and
4 deletions
plugins/ktcore/KTFolderActions.php
| ... | ... | @@ -216,10 +216,12 @@ class KTFolderAddFolderAction extends KTFolderAction { |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | function applyTemplate($rootId, $templateId) { |
| 219 | - $oRegistry =& KTPluginRegistry::getSingleton(); | |
| 220 | - $oPlugin =& $oRegistry->getPlugin('fs.FolderTemplatesPlugin.plugin'); // Get a handle on the plugin | |
| 221 | - // How to get current user. | |
| 222 | - return $oPlugin->applyFolderTemplate($rootId, $templateId); | |
| 219 | + if (KTPluginUtil::pluginIsActive('fs.FolderTemplatesPlugin.plugin')) { // Check if folder templates plugin is active | |
| 220 | + $oRegistry =& KTPluginRegistry::getSingleton(); | |
| 221 | + $oPlugin =& $oRegistry->getPlugin('fs.FolderTemplatesPlugin.plugin'); // Get a handle on the plugin | |
| 222 | + // How to get current user. | |
| 223 | + return $oPlugin->applyFolderTemplate($rootId, $templateId); | |
| 224 | + } | |
| 223 | 225 | } |
| 224 | 226 | } |
| 225 | 227 | ... | ... |