Changeset 466105
- Timestamp:
- 11/22/2011 05:35:01 PM (14 years ago)
- Location:
- profitshare/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
profitshare/trunk
-
Property
svn:ignore
set to
profitshare.sublime-project
profitshare.sublime-workspace
-
Property
svn:ignore
set to
-
profitshare/trunk/index.php
r459958 r466105 28 28 29 29 $old_profithsare = get_option('profitshare_user'); // upgrade de la versiunea 1 30 $this->default_profitshare = ( !empty( $old_profithsare ) ? $old_profithsare : "d4df812647a68d27a5cc35e37c2fbf2f" ); 30 31 $this->old_profithsare = !empty( $old_profithsare ) ? $old_profithsare : null; 32 $this->default_profitshare = "d4df812647a68d27a5cc35e37c2fbf2f"; 31 33 32 34 … … 102 104 103 105 public function admin_init(){ 104 105 106 $custom_rewrite = plugin_basename( __FILE__ ) . '?ntz_do=redirect&url_id=$1&url_name=$2'; 106 add_rewrite_rule( ( !empty( $this->user_settings['short_url_base'] ) ? $this->user_settings['short_url_base'] : $this->default_url_base ) .'/([0-9]*)/?([a-zA-Z0-9\-]*)', $custom_rewrite, 'top' ); 107 if( $this->user_settings['short_links'] ){ 108 add_rewrite_rule( ( !empty( $this->user_settings['short_url_base'] ) ? $this->user_settings['short_url_base'] : $this->default_url_base ) .'/([0-9]*)/?([a-zA-Z0-9\-]*)', $custom_rewrite, 'top' ); 109 }else { 110 flush_rewrite_rules(); 111 } 107 112 register_setting( 'ntz_referral_options', 'ntz_referral_settings', array( &$this, 'save_settings' ) ); 108 113 } // admin_init -
profitshare/trunk/readme.txt
r459958 r466105 16 16 17 17 == Changelog == 18 = 2.0.8 = 19 Am rezolvat un bug ce afișa codul ca fiind invalid în cazul unui upgrade de la versiunea 1. 20 La dezactivarea opțiunii de scurtare a link-urilor se șterg regulile din `.htaccess`. 21 18 22 = 2.0.7 = 19 23 Am rezolvat un bug mic ce făcea quick profitshare să fie afișat tot timpul
Note: See TracChangeset
for help on using the changeset viewer.