projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
13a8ca6
)
DataObjects/Core_template.php
author
Alan
<alan@roojs.com>
Fri, 24 Feb 2023 06:25:00 +0000
(14:25 +0800)
committer
Alan
<alan@roojs.com>
Fri, 24 Feb 2023 06:25:00 +0000
(14:25 +0800)
DataObjects/Core_template.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_template.php
b/DataObjects/Core_template.php
index
becb9d4
..
ab4a24b
100644
(file)
--- a/
DataObjects/Core_template.php
+++ b/
DataObjects/Core_template.php
@@
-456,13
+456,21
@@
class Pman_Core_DataObjects_Core_template extends DB_DataObject
$words = array();
$fc = file_get_contents( $tmpl->currentTemplate );
$words = array();
$fc = file_get_contents( $tmpl->currentTemplate );
- var_dump($tmpl->currentTemplate);
+
$ar = preg_match('/\.\("^("+)"\)/', $fc, $outd);
$ar = preg_match('/\.\("^("+)"\)/', $fc, $outd);
- print_R($outd);
- $ar = preg_match('/\.\('. "'" . '(^"+)'. "'" . '\)/', $fc, $outs);
- print_R($outs);
- throw new Exception("oops");
+ $ar = preg_match('/\.\('. "'" . '(^"+)'. "'" . '\)/', $fc, $outs);
+ if (!in_array(
+ array(
+
+ 'Publisher.Report.js',
+
+ ), $pgdata['template']) {
+ var_dump($tmpl->currentTemplate);
+ print_R($outd);print_R($outs);
+
+ throw new Exception("oops");
+ }
$words[] = str_replace('\\'. $ct, $ct, trim($tok[1] , $ct));
$words = array_unique($words);
$words[] = str_replace('\\'. $ct, $ct, trim($tok[1] , $ct));
$words = array_unique($words);