]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added URL to the other new method names
authorCash Costello <cash.costello@gmail.com>
Tue, 17 Jul 2012 00:05:39 +0000 (20:05 -0400)
committerCash Costello <cash.costello@gmail.com>
Tue, 17 Jul 2012 00:05:39 +0000 (20:05 -0400)
engine/classes/ElggPluginManifest.php
engine/tests/api/plugins.php
views/default/object/plugin/full.php

index 5706d1e4274d8b7f300ff2cdbbeed59ec63cb4c3..a1fe66856c40ef0ec330f7f3e8b59488a7c1ed1b 100644 (file)
@@ -290,7 +290,7 @@ class ElggPluginManifest {
         *
         * @return string
         */
-       public function getBugTracker() {
+       public function getBugTrackerURL() {
                return $this->parser->getAttribute('bugtracker');
        }
 
@@ -299,7 +299,7 @@ class ElggPluginManifest {
         *
         * @return string
         */
-       public function getDonationsPage() {
+       public function getDonationsPageURL() {
                return $this->parser->getAttribute('donations');
        }
 
index 3b650f1b0199ae9ed5331f6b95cf9471932e1763..114f3991b28cfb1f26118b9cafead37d3344d571 100644 (file)
@@ -174,13 +174,13 @@ class ElggCorePluginsAPITest extends ElggCoreUnitTest {
        }
        
                public function testElggPluginManifestGetBugtracker() {
-               $this->assertEqual($this->manifest18->getBugTracker(), 'http://trac.elgg.org');
-               $this->assertEqual($this->manifest17->getBugTracker(), '');
+               $this->assertEqual($this->manifest18->getBugTrackerURL(), 'http://trac.elgg.org');
+               $this->assertEqual($this->manifest17->getBugTrackerURL(), '');
        }
        
                public function testElggPluginManifestGetDonationsPage() {
-               $this->assertEqual($this->manifest18->getDonationsPage(), 'http://elgg.org/supporter.php');
-               $this->assertEqual($this->manifest17->getDonationsPage(), '');
+               $this->assertEqual($this->manifest18->getDonationsPageURL(), 'http://elgg.org/supporter.php');
+               $this->assertEqual($this->manifest17->getDonationsPageURL(), '');
        }
 
        public function testElggPluginManifestGetCopyright() {
index 76e1136f2f67c874b2785ebab68e1622ebd405ad..2de65b55536629424e9daa2db1829fab6f9967c3 100644 (file)
@@ -174,8 +174,8 @@ $website = elgg_view('output/url', array(
 
 $resources = array(
        'repository' => $plugin->getManifest()->getRepositoryURL(),
-       'bugtracker' => $plugin->getManifest()->getBugTracker(),
-       'donate' => $plugin->getManifest()->getDonationsPage(),
+       'bugtracker' => $plugin->getManifest()->getBugTrackerURL(),
+       'donate' => $plugin->getManifest()->getDonationsPageURL(),
 );
 
 $resources_html = "<ul class=\"elgg-plugin-resources\">";