projects
/
Pman.Cms
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51ac2e8
)
Preview.php
author
Edward
<edward@roojs.com>
Mon, 24 Mar 2014 12:01:34 +0000
(20:01 +0800)
committer
Edward
<edward@roojs.com>
Mon, 24 Mar 2014 12:01:34 +0000
(20:01 +0800)
Preview.php
patch
|
blob
|
history
diff --git
a/Preview.php
b/Preview.php
index
32ecdbb
..
09a0ca6
100644
(file)
--- a/
Preview.php
+++ b/
Preview.php
@@
-128,13
+128,13
@@
class Pman_Cms_Preview extends Pman
$this->page = $this->defaultPage;
$this->page_en = $this->defaultPage_en;
} else {
- print_r('run');exit;
$x = DB_DataObject::factory("cms_page");
$x->autoJoin();
$x->is_element = 0;
$x->is_draft = 0;
$x->language = 'en';
if (!$x->get("page_link", $prefix .'/'. $name)) {
+ print_r('run');exit;
$this->err(404, "$name not found");
}