Fixed the bug for the image display on install, it was missing the component name.

This commit is contained in:
Llewellyn van der Merwe 2016-03-04 19:26:18 +02:00
parent ef8578104c
commit 21756c3e55
6 changed files with 13 additions and 10 deletions

View File

@ -117,10 +117,10 @@ class ###Component###ControllerHelp extends JControllerLegacy
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">'; $text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">'; $text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
// build the help text // build the help text
$text[] = '<h3 class="uk-panel-title">'.$document->title."</h3>"; $text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>";
$text[] = str_replace(array_keys($images),array_values($images),$document->content); $text[] = str_replace(array_keys($images),array_values($images),$document->content);
// end template // end template
$text[] = '</div>'; $text[] = '</div><br /><br />';
$text[] = '</div>'; $text[] = '</div>';
$text[] = "</body>"; $text[] = "</body>";
$text[] = "</html>"; $text[] = "</html>";

View File

@ -118,10 +118,10 @@ class ###Component###ControllerHelp extends JControllerLegacy
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">'; $text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">'; $text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
// build the help text // build the help text
$text[] = '<h3 class="uk-panel-title">'.$document->title."</h3>"; $text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>";
$text[] = str_replace(array_keys($images),array_values($images),$document->content); $text[] = str_replace(array_keys($images),array_values($images),$document->content);
// end template // end template
$text[] = '</div>'; $text[] = '</div><br /><br />';
$text[] = '</div>'; $text[] = '</div>';
$text[] = "</body>"; $text[] = "</body>";
$text[] = "</html>"; $text[] = "</html>";

View File

@ -115,10 +115,10 @@ class ComponentbuilderControllerHelp extends JControllerLegacy
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">'; $text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">'; $text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
// build the help text // build the help text
$text[] = '<h3 class="uk-panel-title">'.$document->title."</h3>"; $text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>";
$text[] = str_replace(array_keys($images),array_values($images),$document->content); $text[] = str_replace(array_keys($images),array_values($images),$document->content);
// end template // end template
$text[] = '</div>'; $text[] = '</div><br /><br />';
$text[] = '</div>'; $text[] = '</div>';
$text[] = "</body>"; $text[] = "</body>";
$text[] = "</html>"; $text[] = "</html>";

View File

@ -3624,6 +3624,9 @@ class Interpretation extends Fields
{ {
// reset script // reset script
$script = $this->setComponentToContentTypes('install'); $script = $this->setComponentToContentTypes('install');
// set the component name
$component = $this->fileContentStatic['###component###'];
if (isset($this->paramsBuilder) && ComponentbuilderHelper::checkString($this->paramsBuilder)) if (isset($this->paramsBuilder) && ComponentbuilderHelper::checkString($this->paramsBuilder))
{ {

View File

@ -1417,14 +1417,14 @@ class com_componentbuilderInstallerScript
// Condition. // Condition.
$conditions = array( $conditions = array(
$db->quoteName('element') . ' = ' . $db->quote('com_') $db->quoteName('element') . ' = ' . $db->quote('com_componentbuilder')
); );
$query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions); $query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions);
$db->setQuery($query); $db->setQuery($query);
$allDone = $db->execute(); $allDone = $db->execute();
echo '<a target="_blank" href="https://www.vdm.io/joomla-component-builder" title="Component Builder"> echo '<a target="_blank" href="https://www.vdm.io/joomla-component-builder" title="Component Builder">
<img src="components/com_/assets/images/component-300.png"/> <img src="components/com_componentbuilder/assets/images/component-300.png"/>
</a>'; </a>';
} }
// do any updates needed // do any updates needed

View File

@ -116,10 +116,10 @@ class ComponentbuilderControllerHelp extends JControllerLegacy
$text[] = '<div class="uk-container uk-container-center uk-grid-collapse">'; $text[] = '<div class="uk-container uk-container-center uk-grid-collapse">';
$text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">'; $text[] = '<div class="uk-panel uk-width-1-1 uk-panel-box uk-panel-box-primary">';
// build the help text // build the help text
$text[] = '<h3 class="uk-panel-title">'.$document->title."</h3>"; $text[] = '<h1 class="uk-panel-title">'.$document->title."</h1>";
$text[] = str_replace(array_keys($images),array_values($images),$document->content); $text[] = str_replace(array_keys($images),array_values($images),$document->content);
// end template // end template
$text[] = '</div>'; $text[] = '</div><br /><br />';
$text[] = '</div>'; $text[] = '</div>';
$text[] = "</body>"; $text[] = "</body>";
$text[] = "</html>"; $text[] = "</html>";