PluginProbe
CSS & JavaScript Toolbox / 9.0
CSS & JavaScript Toolbox v9.0
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | models/template.php +1 -2 11.29.0 View file →
@@ -142,10 +142,9 @@
142 142 }
143 143 $template->setData($this->inputs['item']['template'])
144 144 ->setQueueName();
145 145 $templateDirName = $template->get('queueName');
146 - $contentDir = end( explode( DIRECTORY_SEPARATOR, dirname( dirname( plugin_dir_path( CJTOOLBOX_PLUGIN_FILE ) ) ) ) );
147 - $templateDir = "$contentDir/{$fSConfig->contentDir}/{$fSConfig->templatesDir}/{$templateDirName}";
146 + $templateDir = content_url( "{$fSConfig->contentDir}/{$fSConfig->templatesDir}/{$templateDirName}" );
148 147 if (!$template->get('id')) { // Add new Template
149 148 // Search for author for the current local Wordpress user.
150 149 // If not created in the Authors table create one! If created get the ID!
151 150 $author = CJTxTable::getInstance('author', null, "SELECT * FROM #__cjtoolbox_authors