aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-13 00:58:12 +0200
committerSem <sembrestels@riseup.net>2012-07-13 00:58:12 +0200
commitb7edff977107e928660256f37bbf4bc35fdea0a9 (patch)
tree140d069ba896d32529f477396413fea8c39217f0 /engine
parent17c28c8161e8c551ce4e4a1345e525cbb785fb59 (diff)
downloadelgg-b7edff977107e928660256f37bbf4bc35fdea0a9.tar.gz
elgg-b7edff977107e928660256f37bbf4bc35fdea0a9.tar.bz2
Refs #3646. "getRepositoryURL" is more descriptive than "getRepository".
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggPluginManifest.php10
-rw-r--r--engine/tests/api/plugins.php4
2 files changed, 7 insertions, 7 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() {