MDL-14591: fixing merge issues in portfolio
authormjollnir_ <mjollnir_>
Fri, 25 Jul 2008 08:31:59 +0000 (08:31 +0000)
committermjollnir_ <mjollnir_>
Fri, 25 Jul 2008 08:31:59 +0000 (08:31 +0000)
user/portfolio.php
user/tabs.php

index 934427a..16d0e29 100644 (file)
@@ -83,7 +83,7 @@ if ($display) {
     foreach ($instances as $i) {
         $visible = $i->get_user_config('visible', $USER->id);
         $table->data[] = array($i->get('name'), $i->get('plugin'),
-            ($i->has_user_config())
+            ($i->has_user_config()
                 ?  '<a href="' . $baseurl . '?config=' . $i->get('id') . '"><img src="' . $CFG->pixpath . '/t/edit.gif" alt="' . get_string('configure') . '" /></a>' : '') .
                    ' <a href="' . $baseurl . '?hide=' . $i->get('id') . '"><img src="' . $CFG->pixpath . '/t/' . (($visible) ? 'hide' : 'show') . '.gif" alt="' . get_string($visible ? 'hide' : 'show') . '" /></a><br />'
         );
index 815d909..9d40591 100644 (file)
             // @todo permissions check?
             $toprow[] = new tabobject('portfolios', $CFG->wwwroot .'/user/portfolio.php', get_string('portfolios', 'portfolio'));
         }
+    }
     
 ///added a new messaging tab
     if (has_capability('moodle/user:editownmessageprofile', $systemcontext)) {