Skip to content

Commit

Permalink
added htaccess_changed() method
Browse files Browse the repository at this point in the history
  • Loading branch information
mryand authored and natepixel committed May 4, 2012
1 parent d12a2a5 commit 88e7471
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions reason_4.0/lib/core/classes/url_manager.php
Expand Up @@ -99,6 +99,11 @@ class url_manager
*/
var $_ok_to_run = false;

/**
* @var boolean
*/
protected $_htaccess_changed = false;

function url_manager( $site_id, $debug = false, $do_global_rewrites = false ) // {{{
{
$this->debug = $debug;
Expand Down Expand Up @@ -358,6 +363,7 @@ function update_rewrites() // {{{
{
$this->debug( 'test file diff from current, testing and copying' );
$this->_test_and_copy();
$this->_htaccess_changed = true;
}
else
{
Expand Down Expand Up @@ -439,6 +445,10 @@ function make_site_valid($report = true) // {{{
}
}
} // }}}
function htaccess_changed()
{
return $this->_htaccess_changed;
}
function _test_and_copy() // {{{
{
if( filesize( $this->test_file ) > 0 )
Expand Down

0 comments on commit 88e7471

Please sign in to comment.