Skip to content

Commit

Permalink
Updated for Symphony 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiswharf committed May 21, 2012
1 parent ccf525a commit cf7dd3e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 deletions.
16 changes: 3 additions & 13 deletions extension.driver.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

include_once(TOOLKIT . '/class.entrymanager.php');
include_once(TOOLKIT . '/class.sectionmanager.php');

class extension_member_last_visit extends Extension {

public static $entryManager = null;
Expand All @@ -8,19 +11,6 @@ class extension_member_last_visit extends Extension {
public function __construct() {
extension_member_last_visit::$entryManager = new EntryManager(Symphony::Engine());
}

public function about() {
return array(
'name' => 'Member Last Visit',
'version' => '1.03',
'release-date' => '2012-05-20',
'author' => array(
'name' => 'Mark Lewis',
'website' => 'http://casadelewis.com',
'email' => 'mark@casadelewis.com'
)
);
}

public function getSubscribedDelegates() {
return array(
Expand Down
5 changes: 4 additions & 1 deletion extension.meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
</author>
</authors>
<releases>
<release version="1.03" date="2012-05-20" min="2.2">
<release version="1.04" date="2012-05-20" min="2.3.x">
- Updated for Symphony 2.3
</release>
<release version="1.03" date="2012-05-20" min="2.2" masx="2.2.5">
- Fixed bug where existing members were not logged
</release>
<release version="1.02" date="2012-05-14" min="2.2">
Expand Down
4 changes: 2 additions & 2 deletions fields/field.member_last_visit.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
Definition:
-------------------------------------------------------------------------*/

public function __construct(&$parent){
parent::__construct($parent);
public function __construct(){
parent::__construct();
$this->_name = __('Member: Last Visit');
$this->_showassociation = false;
}
Expand Down
12 changes: 0 additions & 12 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

Works in conjunction with the Members extension and logs a member's last visit.

- Version: 1.03
- Author: Mark Lewis <mark@casadelewis.com>
- Build Date: 20 May 2012
- Requirements: Symphony 2.2

##Install

1. Upload the 'member_last_visit' folder in this archive to your Symphony
Expand All @@ -20,10 +15,3 @@ Works in conjunction with the Members extension and logs a member's last visit.
##Uninstall

1. Uninstall extension by selecting the "Member Last Visit" item under Extensions, choose Uninstall from the with-selected menu, then click Apply.

##History

- 1.03 Fixed bug where existing members were not logged
- 1.02 Changed last vist calculation
- 1.01 Fixed bug where __logVisit returned false incorrectly
- 1.0 Initial release

0 comments on commit cf7dd3e

Please sign in to comment.