Skip to content

Commit

Permalink
Add login message about this version being from old respository, with…
Browse files Browse the repository at this point in the history
… link to new repository.
  • Loading branch information
ryancramerdesign committed Oct 7, 2016
1 parent 19963a5 commit 0f20b07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wire/core/ProcessWire.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ProcessWire extends Wire {
const versionMajor = 2;
const versionMinor = 7;
const versionRevision = 3;
const versionSuffix = 'dev';
const versionSuffix = '';

const indexVersion = 270; // required version for index.php file (represented by PROCESSWIRE define)
const htaccessVersion = 250; // required version for .htaccess file
Expand Down
2 changes: 2 additions & 0 deletions wire/core/Wire.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ abstract class Wire implements WireTranslatable, WireHookable, WireFuelable, Wir
*/
protected $useFuel = true;

public function __construct() {}

/**
* Add fuel to all classes descending from Wire
*
Expand Down
5 changes: 5 additions & 0 deletions wire/modules/Process/ProcessLogin/ProcessLogin.module
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ class ProcessLogin extends Process {
$indexVersion = ProcessWire::indexVersion;
$htaccessVersion = ProcessWire::htaccessVersion;

$this->warning(
"Please note: This version of ProcessWire is from the old repository. The new repositories are located at: " .
"<a target='_blank' href='https://github.com/processwire/'>github.com/processwire</a>", Notice::allowMarkup
);

if(PROCESSWIRE < $indexVersion) {
$this->warning(
"Not urgent, but note that your root index.php file is not up-to-date with this ProcessWire version - please update it when possible. " .
Expand Down

1 comment on commit 0f20b07

@somatonic
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there no 2.7.3 on the new github account? We don't want to use 2.8 or 3.

Please sign in to comment.