public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
Fixed the Cacher module not working correctly with Flash messages.
vito (author)
Wed Jul 23 12:40:47 -0700 2008
commit  5c43bee26365703508332d64a64a3749f25e4779
tree    7f859e3b6d768bb6daed3436faa6cd580b44218c
parent  10325041c602fd9c9d19b20be17810975b6f3917
...
138
139
140
141
142
143
144
...
171
172
173
174
175
176
177
...
138
139
140
 
141
142
143
...
170
171
172
 
173
174
175
0
@@ -138,7 +138,6 @@ var Write = {
0
     })
0
     $("textarea").each(function(){
0
       $(this).css({
0
-        minHeight: $(this).outerHeight() + 2,
0
         lineHeight: "15px"
0
       }).autogrow()
0
     })
0
@@ -171,7 +170,6 @@ var Write = {
0
     }
0
   },
0
   more_options: function(){
0
-    console.log($("#more_options").size())
0
     if ($("#more_options").size()) {
0
       if (Cookie.get("show_more_options") == "true")
0
         var more_options_text = "<?php echo __("&laquo; Fewer Options"); ?>";
...
136
137
138
 
 
 
139
140
141
...
136
137
138
139
140
141
142
143
144
0
@@ -136,6 +136,9 @@
0
      * Serves a message of type $type and destroys it from the session.
0
      */
0
     public function serve($type) {
0
+      if (!empty($_SESSION[$type]))
0
+        self::$exists = true;
0
+
0
       if (isset($_SESSION[$type])) {
0
         $this->$type = $_SESSION[$type];
0
         $_SESSION[$type] = array();
...
230
231
232
233
234
235
236
237
238
...
230
231
232
 
 
 
233
234
235
0
@@ -230,9 +230,6 @@
0
       $page = new Page(null, array("where" => "url = :url",
0
                                    "params" => array(":url" => end($this->arg))));
0
 
0
-      if ($i_have_the_power)
0
-        error_log(print_r($this->arg, true));
0
-
0
       if (!$page->no_results)
0
         return list($_GET['url'], $this->action) = array(end($this->arg), "page");
0
       elseif ($i_have_the_power)
...
136
137
138
 
 
 
 
 
139
140
...
136
137
138
139
140
141
142
143
144
145
0
@@ -136,4 +136,9 @@
0
       if (Config::current()->set("cache_expire", $_POST['cache_expire']))
0
         Flash::notice(__("Settings updated."), "/admin/?action=cache_settings");
0
     }
0
+
0
+    public function route_regenerate() {
0
+      $this->regenerate();
0
+      Flash::notice("Regenerated!", "/");
0
+    }
0
   }
0
\ No newline at end of file

Comments