Changeset 2003436
- Timestamp:
- 12/29/2018 01:13:52 PM (7 years ago)
- Location:
- saperu-integration/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (3 diffs)
-
sape/sape.php (modified) (6 diffs)
-
saperu-integration.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
saperu-integration/trunk/readme.txt
r2001659 r2003436 9 9 Tested up to: 4.7 10 10 Stable tag: trunk 11 Version: 0.0 411 Version: 0.05 12 12 Author: Sape.ru 13 13 Author URI: https://www.sape.ru/ … … 100 100 Add sharding for links.db file 101 101 102 ### v 0.05 103 Fix multisite mode 104 102 105 ## Changelog 103 106 ### v 0.01 … … 112 115 ### v 0.04 113 116 Change store mode for links.db file 117 118 ### v 0.05 119 Fix multisite mode -
saperu-integration/trunk/sape/sape.php
r2001659 r2003436 21 21 class SAPE_base 22 22 { 23 protected $_version = '1.4. 2';23 protected $_version = '1.4.3'; 24 24 25 25 protected $_verbose = false; … … 1413 1413 { 1414 1414 if ($this->_split_data_file) { 1415 if ($this->_multi_site) { 1416 $directory = dirname(__FILE__) . '/' . $this->_host . '/'; 1417 } else { 1418 $directory = dirname(__FILE__) . '/'; 1419 } 1415 $directory = dirname(__FILE__) . '/'; 1420 1416 $hashArray = array(); 1421 1417 $data = $this->_uncode_data($data); … … 1426 1422 $currentFile = 'links.' . crc32($url) % 100 . '.db'; 1427 1423 } 1424 1425 if ($this->_multi_site) { 1426 $currentFile = $this->_host . '.' . $currentFile; 1427 } 1428 1428 1429 $hashArray[$currentFile][$url] = $item; 1429 1430 } … … 1820 1821 { 1821 1822 if ($this->_split_data_file) { 1822 if ($this->_multi_site) { 1823 $directory = dirname(__FILE__) . '/' . $this->_host . '/'; 1824 } else { 1825 $directory = dirname(__FILE__) . '/'; 1826 } 1823 $directory = dirname(__FILE__) . '/'; 1827 1824 $hashArray = array(); 1828 1825 $data = $this->_uncode_data($data); … … 1832 1829 } else { 1833 1830 $currentFile = 'words.' . crc32($url) % 100 . '.db'; 1831 } 1832 if ($this->_multi_site) { 1833 $currentFile = $this->_host . '.' . $currentFile; 1834 1834 } 1835 1835 $hashArray[$currentFile][$url] = $item; … … 2340 2340 } 2341 2341 } 2342 2343 protected function _get_meta_file() 2344 { 2345 return $this->_get_db_file(); 2346 } 2342 2347 } -
saperu-integration/trunk/saperu-integration.php
r2001659 r2003436 4 4 Plugin URI: https://github.com/sape-ru/client-code-wordpress/releases 5 5 Description: Plugin for Sape.ru webmaster services integration 6 Version: 0.0 46 Version: 0.05 7 7 Author: Sape.ru 8 8 Author URI: http://www.sape.ru/
Note: See TracChangeset
for help on using the changeset viewer.