From 081ccb87218b3da47cdf074130ddc3e5dafeff4a Mon Sep 17 00:00:00 2001 From: Laurent Opprecht Date: Thu, 7 Jun 2012 11:40:13 +0200 Subject: [PATCH] #2851 portfolio integration --- main/inc/lib/system/portfolio/mahara.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main/inc/lib/system/portfolio/mahara.class.php b/main/inc/lib/system/portfolio/mahara.class.php index 352f95e716..f8b526d7f0 100644 --- a/main/inc/lib/system/portfolio/mahara.class.php +++ b/main/inc/lib/system/portfolio/mahara.class.php @@ -25,7 +25,8 @@ class Mahara extends Portfolio */ function __construct($url) { - parent::__construct('Mahara', null); + $name = md5($url); + parent::__construct($name, null); $this->url = $url; } @@ -33,6 +34,12 @@ class Mahara extends Portfolio { return $this->url; } + + function get_title(){ + $result = parent::get_title(); + $result = $result ? $result : 'Mahara'; + return $result; + } /** *