Permalink
Browse files

Disable menu module and hide some new category options

  • Loading branch information...
1 parent a0fd0fb commit 36af78fddbaaec0f69c60ccef22c45ebb7ef9b88 @mahagr mahagr committed Apr 15, 2012
@@ -119,6 +119,7 @@ public function uninstall() {
$this->uninstallPlugin('kunena', 'uddeim');
$this->uninstallPlugin('finder', 'kunena');
$this->uninstallPlugin('system', 'kunena');
+
$this->uninstallModule('mod_kunenamenu');
// Remove all Kunena related menu items, including aliases
@@ -592,7 +593,10 @@ public function stepPlugins() {
$this->installPlugin('install/plugins/plg_kunena_community', 'kunena', 'community', false);
$this->installPlugin('install/plugins/plg_kunena_gravatar', 'kunena', 'gravatar', false);
$this->installPlugin('install/plugins/plg_kunena_uddeim', 'kunena', 'uddeim', false);
- $this->installModule('install/modules/mod_kunenamenu', 'kunenamenu');
+
+ // TODO: install also menu module
+ $this->uninstallModule('mod_kunenamenu');
+ //$this->installModule('install/modules/mod_kunenamenu', 'kunenamenu');
if (! $this->getError ())
$this->setStep ( $this->getStep()+1 );
@@ -16,5 +16,5 @@ function kunena_upgrade_200_menu($parent) {
$legacy = KunenaMenuFix::getLegacy();
$errors = KunenaMenuFix::fixLegacy();
- return array ('action' => '', 'name' => JText::sprintf ( 'COM_KUNENA_INSTALL_200_MENU', count($legacy) ), 'success' => !$errors);
+ if(!empty($legacy)) return array ('action' => '', 'name' => JText::sprintf ( 'COM_KUNENA_INSTALL_200_MENU', count($legacy) ), 'success' => !$errors);
}
@@ -57,7 +57,7 @@
<span class="ktopic-posted-time" title="<?php echo KunenaDate::getInstance($this->topic->first_post_time)->toKunena('config_post_dateformat_hover'); ?>">
<?php echo JText::_('COM_KUNENA_TOPIC_STARTED_ON') . ' ' . KunenaDate::getInstance($this->topic->first_post_time)->toKunena('config_post_dateformat');?>
</span>
- <span class="ktopic-by ks"><?php echo JText::_('COM_KUNENA_GEN_BY') . ' ' . $this->topic->getFirstPostAuthor()->getLink() ?></span>
+ <span class="ktopic-by ks">&nbsp;<?php echo JText::_('COM_KUNENA_GEN_BY') . ' ' . $this->topic->getFirstPostAuthor()->getLink() ?></span>
</div>
<?php if ($this->topic->posts > $this->config->messages_per_page) : ?>

0 comments on commit 36af78f

Please sign in to comment.