From 14cb5c068d8624a3261008998a09bfb9dc73a572 Mon Sep 17 00:00:00 2001 From: Jarrett Jordaan Date: Mon, 1 Mar 2010 13:34:04 +0200 Subject: [PATCH] PT:2492070 : First Login wizard updated. --- plugins/ktcore/KTFolderActions.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/ktcore/KTFolderActions.php b/plugins/ktcore/KTFolderActions.php index 4eae3ff..4cf980e 100644 --- a/plugins/ktcore/KTFolderActions.php +++ b/plugins/ktcore/KTFolderActions.php @@ -216,10 +216,12 @@ class KTFolderAddFolderAction extends KTFolderAction { } function applyTemplate($rootId, $templateId) { - $oRegistry =& KTPluginRegistry::getSingleton(); - $oPlugin =& $oRegistry->getPlugin('fs.FolderTemplatesPlugin.plugin'); // Get a handle on the plugin - // How to get current user. - return $oPlugin->applyFolderTemplate($rootId, $templateId); + if (KTPluginUtil::pluginIsActive('fs.FolderTemplatesPlugin.plugin')) { // Check if folder templates plugin is active + $oRegistry =& KTPluginRegistry::getSingleton(); + $oPlugin =& $oRegistry->getPlugin('fs.FolderTemplatesPlugin.plugin'); // Get a handle on the plugin + // How to get current user. + return $oPlugin->applyFolderTemplate($rootId, $templateId); + } } } -- libgit2 0.21.4