Changeset 653 for trunk

Show
Ignore:
Timestamp:
09/22/07 11:08:30 (14 months ago)
Author:
michiel
Message:

make searching for month/year in backend work again.
Also disable the limit on active=1/public=1 for the backend.

Re #166

Location:
trunk/common
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/mvblog_admin.php

    r651 r653  
    10671067                        $postoptions["archive"] = 1; 
    10681068                        $postoptions["timestamp_start"] = mktime(0,0,0,$options["month"],1,$options["year"]); 
    1069                         $postoptions["timestamp_stop"]  = mktime(0,0,0,$options["month"]+1,1,$options["year"]); 
     1069                        $postoptions["timestamp_end"]   = mktime(0,0,0,$options["month"]+1,1,$options["year"]); 
    10701070                } 
    10711071 
     
    10791079                /* max time is 10 years in the future */ 
    10801080                $postoptions["max_time"] = mktime(0, 0, 0, date("m"), date("d"), date("Y")+10); 
     1081                /* make sure we get all the data */ 
     1082                $postoptions["adminmode"] = true; 
    10811083 
    10821084                $posts = $this->_get_posts($postoptions); 
  • trunk/common/mvblog_common.php

    r651 r653  
    623623                                        $options["timestamp_start"] = $time_start; 
    624624                                        $options["timestamp_end"]   = $time_end; 
     625                                } else { 
     626                                        $archtitle = date("F Y", $options["timestamp_start"]); 
    625627                                } 
    626628                                if ($adminmode)