Index: branches/RL2/extensions/Gadgets/backend/GadgetResourceLoaderModule.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | * ResourceLoader module for a single gadget |
5 | 5 | */ |
6 | 6 | class GadgetResourceLoaderModule extends ResourceLoaderWikiModule { |
7 | | - protected $pages, $dependencies, $messages, $source, $timestamp; |
| 7 | + protected $pages, $dependencies, $messages, $source, $definitiontimestamp; |
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Creates an instance of this class |
— | — | @@ -16,15 +16,15 @@ |
17 | 17 | * @param $dependencies Array: Names of resources this module depends on |
18 | 18 | * @param $messages Array: Keys of the i18n messages that this module needs |
19 | 19 | * @param $source String: Name of the source of this module, as defined in ResourceLoader |
20 | | - * @param $timestamp String: Last modification timestamp of the gadget metadata |
| 20 | + * @param $definitiontimestamp String: Last modification timestamp of the gadget metadata |
21 | 21 | * @param $db Database: Remote database object // TODO: How will this work for ForeignAPIGadgetRepo? |
22 | 22 | */ |
23 | | - public function __construct( $pages, $dependencies, $messages, $source, $timestamp, $db ) { |
| 23 | + public function __construct( $pages, $dependencies, $messages, $source, $definitiontimestamp, $db ) { |
24 | 24 | $this->pages = $pages; |
25 | 25 | $this->dependencies = $dependencies; |
26 | 26 | $this->messages = $messages; |
27 | 27 | $this->source = $source; |
28 | | - $this->timestamp = $timestamp; |
| 28 | + $this->definitiontimestamp = $definitiontimestamp; |
29 | 29 | $this->db = $db; |
30 | 30 | } |
31 | 31 | |
— | — | @@ -65,13 +65,13 @@ |
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
69 | | - * Overrides ResourceLoaderWikiModule::getModifiedTime() to take $timestamp |
| 69 | + * Overrides ResourceLoaderWikiModule::getModifiedTime() to take $definitiontimestamp |
70 | 70 | * into account. |
71 | 71 | * @param $context ResourceLoaderContext object |
72 | 72 | * @return int UNIX timestamp |
73 | 73 | */ |
74 | 74 | public function getModifiedTime( ResourceLoaderContext $context ) { |
75 | 75 | $retval = parent::getModifiedTime( $context ); |
76 | | - return max( $retval, wfTimestamp( TS_UNIX, $this->timestamp ) ); |
| 76 | + return max( $retval, wfTimestamp( TS_UNIX, $this->definitiontimestamp ) ); |
77 | 77 | } |
78 | 78 | } |