aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/classes/ElggPluginManifest.php10
-rw-r--r--engine/tests/api/plugins.php4
-rw-r--r--views/default/object/plugin/full.php2
3 files changed, 8 insertions, 8 deletions
diff --git a/engine/classes/ElggPluginManifest.php b/engine/classes/ElggPluginManifest.php
index 5eb248c2c..5706d1e42 100644
--- a/engine/classes/ElggPluginManifest.php
+++ b/engine/classes/ElggPluginManifest.php
@@ -264,7 +264,7 @@ class ElggPluginManifest {
/**
* Returns the license
*
- * @return sting
+ * @return string
*/
public function getLicense() {
// license vs licence. Use license.
@@ -279,16 +279,16 @@ class ElggPluginManifest {
/**
* Returns the repository url
*
- * @return sting
+ * @return string
*/
- public function getRepository() {
+ public function getRepositoryURL() {
return $this->parser->getAttribute('repository');
}
/**
* Returns the bug tracker page
*
- * @return sting
+ * @return string
*/
public function getBugTracker() {
return $this->parser->getAttribute('bugtracker');
@@ -297,7 +297,7 @@ class ElggPluginManifest {
/**
* Returns the donations page
*
- * @return sting
+ * @return string
*/
public function getDonationsPage() {
return $this->parser->getAttribute('donations');
diff --git a/engine/tests/api/plugins.php b/engine/tests/api/plugins.php
index 66297266c..3b650f1b0 100644
--- a/engine/tests/api/plugins.php
+++ b/engine/tests/api/plugins.php
@@ -169,8 +169,8 @@ class ElggCorePluginsAPITest extends ElggCoreUnitTest {
}
public function testElggPluginManifestGetRepository() {
- $this->assertEqual($this->manifest18->getRepository(), 'https://github.com/Elgg/Elgg');
- $this->assertEqual($this->manifest17->getRepository(), '');
+ $this->assertEqual($this->manifest18->getRepositoryURL(), 'https://github.com/Elgg/Elgg');
+ $this->assertEqual($this->manifest17->getRepositoryURL(), '');
}
public function testElggPluginManifestGetBugtracker() {
diff --git a/views/default/object/plugin/full.php b/views/default/object/plugin/full.php
index a96acd4ec..76e1136f2 100644
--- a/views/default/object/plugin/full.php
+++ b/views/default/object/plugin/full.php
@@ -173,7 +173,7 @@ $website = elgg_view('output/url', array(
));
$resources = array(
- 'repository' => $plugin->getManifest()->getRepository(),
+ 'repository' => $plugin->getManifest()->getRepositoryURL(),
'bugtracker' => $plugin->getManifest()->getBugTracker(),
'donate' => $plugin->getManifest()->getDonationsPage(),
);