-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from dcz/ticket/37
[ticket/37] Implement sync_url
- Loading branch information
Showing
9 changed files
with
186 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* | ||
* @package Ultimate SEO URL phpBB SEO | ||
* @version $$ | ||
* @copyright (c) 2014 www.phpbb-seo.com | ||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 | ||
* | ||
*/ | ||
|
||
namespace phpbbseo\usu\migrations; | ||
|
||
class release_2_0_0_b2 extends \phpbb\db\migration\migration | ||
{ | ||
public function effectively_installed() | ||
{ | ||
if (!empty($this->config['seo_usu_version'])) | ||
{ | ||
return version_compare($this->config['seo_usu_version'], '2.0.0-b2', '>='); | ||
} | ||
|
||
return false; | ||
} | ||
|
||
static public function depends_on() | ||
{ | ||
return array('\phpbbseo\usu\migrations\release_2_0_0_b1'); | ||
} | ||
|
||
public function update_data() | ||
{ | ||
return array( | ||
array('config.add', array('seo_usu_version', '2.0.0-b2')), | ||
array( | ||
'module.add', | ||
array( | ||
'acp', | ||
'ACP_MOD_REWRITE', | ||
array( | ||
'module_basename' => '\phpbbseo\usu\acp\usu', | ||
'module_langname' => 'ACP_SYNC_URL', | ||
'module_mode' => 'sync_url', | ||
'module_auth' => 'ext_phpbbseo/usu && acl_a_board', | ||
), | ||
) | ||
), | ||
); | ||
} | ||
} |