Changeset 209802
- Timestamp:
- 02/24/2010 01:55:22 PM (16 years ago)
- File:
-
- 1 edited
-
wordbay/trunk/WordBay.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordbay/trunk/WordBay.php
r209790 r209802 79 79 $searchterms = urlencode ($searchterms); 80 80 81 $WBOptions = $this -> getAdminOptions ( );82 81 $search_page_link = $WBOptions['search_page']; 83 82 if ( preg_match ( '#=[0-9]+#', $search_page_link ) ) // Cheap and nasty check to see if we are using non-rewritten URLs … … 544 543 545 544 546 $WBCSSdata = $postedCSS;547 file_put_contents($WBCSSfile, $WBCSSdata);545 $WBCSSdata = $postedCSS; 546 file_put_contents($WBCSSfile, $WBCSSdata); 548 547 } 549 548 update_option ( $this -> adminOptionsName, $WBOptions ); … … 796 795 <?php 797 796 // check if there is already a stylesheet in memory, if so, retrieve and skip the rest 798 if ( $WBOptions['WordBayCSS'])797 if (array_key_exists ('WordBayCSS', $WBOptions)) 799 798 { 800 $varWBCSS = $WBOptions['WordBayCSS'];801 if (!file_exists(getPluginPath() . '/WordBay.css'))802 803 {804 ?><p style="color: red;">No existing <strong>WordBay.css</strong> was found in your plugin directory (either you have just installed a new version of WordBay, or you deleted it for some reason). A previous css file was found in memory and saved as <strong>WordBay.css</strong>.</p><?php805 file_put_contents(getPluginPath() . '/WordBay.css', $varWBCSS);806 }799 $varWBCSS = $WBOptions['WordBayCSS']; 800 if (!file_exists(getPluginPath() . '/WordBay.css')) 801 802 { 803 ?><p style="color: red;">No existing <strong>WordBay.css</strong> was found in your plugin directory (either you have just installed a new version of WordBay, or you deleted it for some reason). A previous css file was found in memory and saved as <strong>WordBay.css</strong>.</p><?php 804 file_put_contents(getPluginPath() . '/WordBay.css', $varWBCSS); 805 } 807 806 808 807 … … 811 810 else if (file_exists(getPluginPath() . '/WordBay.css')) 812 811 { 813 $WBCSSdata = stripslashes(file_get_contents(getPluginPath() . '/WordBay.css'));814 $WBOptions['WordBayCSS'] = $WBCSSdata;815 update_option ( $this -> adminOptionsName, $WBOptions );816 $varWBCSS = $WBCSSdata;817 ?>812 $WBCSSdata = stripslashes(file_get_contents(getPluginPath() . '/WordBay.css')); 813 $WBOptions['WordBayCSS'] = $WBCSSdata; 814 update_option ( $this -> adminOptionsName, $WBOptions ); 815 $varWBCSS = $WBCSSdata; 816 ?> 818 817 819 818
Note: See TracChangeset
for help on using the changeset viewer.