File tree Expand file tree Collapse file tree 6 files changed +14
-11
lines changed
administrator/components/com_patchtester Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function apply()
2525 ->apply (JFactory::getApplication ()->input ->getInt ('pull_id ' ));
2626
2727 $ msg = JText::_ ('COM_PATCHTESTER_APPLY_OK ' );
28- $ type = 'success ' ;
28+ $ type = 'message ' ;
2929 }
3030 catch (Exception $ e )
3131 {
@@ -44,7 +44,7 @@ public function revert()
4444 ->revert (JFactory::getApplication ()->input ->getInt ('pull_id ' ));
4545
4646 $ msg = JText::_ ('COM_PATCHTESTER_REVERT_OK ' );
47- $ type = 'success ' ;
47+ $ type = 'message ' ;
4848 }
4949 catch (Exception $ e )
5050 {
Original file line number Diff line number Diff line change 44 * Date: 08.09.12
55 * Time: 19:08
66 *
7- * @property-read PtGithubRepos $repos GitHub API object for repos.
7+ * @property-read PTGithubRepos $repos GitHub API object for repos.
88 */
9- class PtGithub extends JGithub
9+ class PTGithub extends JGithub
1010{
1111 /**
12- * @var PtGithubRepos
12+ * @var PTGithubRepos
1313 */
1414 protected $ repos ;
1515
1616 public static function getInstance (JRegistry $ options = null , JGithubHttp $ client = null )
1717 {
18- return new PtGithub ($ options , $ client );
18+ return new PTGithub ($ options , $ client );
1919 }
2020
2121 public function __get ($ name )
@@ -24,7 +24,7 @@ public function __get($name)
2424 {
2525 if ($ this ->repos == null )
2626 {
27- $ this ->repos = new PtGithubRepos ($ this ->options , $ this ->client );
27+ $ this ->repos = new PTGithubRepos ($ this ->options , $ this ->client );
2828 }
2929
3030 return $ this ->repos ;
Original file line number Diff line number Diff line change 88/**
99 * A.
1010 */
11- class PtGithubRepos extends JGithubObject
11+ class PTGithubRepos extends JGithubObject
1212{
1313 public function get ($ user , $ repo )
1414 {
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ protected function parsePatch($patch)
9191
9292 public function apply ($ id )
9393 {
94+ jimport ('joomla.filesystem.file ' );
9495 //@todo Use the JCurl class
9596// require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/curl.php';
9697
@@ -186,6 +187,8 @@ public function apply($id)
186187
187188 public function revert ($ id )
188189 {
190+ jimport ('joomla.filesystem.file ' );
191+
189192 $ table = JTable::getInstance ('tests ' , 'PatchTesterTable ' );
190193
191194 $ table ->load ($ id );
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ public function getTotal()
192192
193193 //$repo = $g->repos->get('joomla', 'joomla-cms');
194194
195- return PtGithub ::getInstance ()
195+ return PTGithub ::getInstance ()
196196 ->repos ->get ('joomla ' , 'joomla-cms ' )
197197 ->open_issues_count ;
198198
Original file line number Diff line number Diff line change 1818// Include dependencies
1919//jimport('joomla.application.component.controller');
2020
21- JLoader::registerPrefix ('Pt ' , __DIR__ .'/helpers ' );
21+ JLoader::registerPrefix ('PT ' , __DIR__ .'/helpers ' );
2222
2323$ controller = JControllerLegacy::getInstance ('PatchTester ' );
24- $ controller ->execute (JRequest:: getCmd ('task ' ));
24+ $ controller ->execute (JFactory:: getApplication ()-> input -> getCmd ('task ' ));
2525$ controller ->redirect ();
You can’t perform that action at this time.
0 commit comments