True, but try reading a log with half of it underlined in green squiggles!Qphoria wrote: anyway it's just a log
I fixed it on my copy, so all's well that ends well.
True, but try reading a log with half of it underlined in green squiggles!Qphoria wrote: anyway it's just a log
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
you know komodo has an option in the edit menu fix line endings that will remove all the green squiggles at once.marc_cole wrote:True, but try reading a log with half of it underlined in green squiggles!Qphoria wrote: anyway it's just a log
I fixed it on my copy, so all's well that ends well.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Code: Select all
if ($regex && !$this->testRegEx($search, "test string")) {
Code: Select all
if ($regex == true && !$this->testRegEx($search, "test string")) {
I know, but I'd have to do that pretty much every single time I viewed the log, which would get old fast. Anyway, I just wanted Q to know in case it was more widespread than just me. After changing my copy of the php file, I no longer have the problem. I just have to remember to make the change on all the updates.Xsecrets wrote:you know komodo has an option in the edit menu fix line endings that will remove all the green squiggles at once.
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
Code: Select all
date_default_timezone_set('UTC');
Code: Select all
date_default_timezone_set('America/Los_Angeles');
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
technically it should be pulled based on your php.ini setting for timezone.. but i was getting errors if that wasn't set so I just forced it to UTC for now. I was just going to remove the time stamp as I really only cared about the microseconds.marc_cole wrote:One more suggestion and then I'll stop — for now.
UTC time is hard-coded in vqmod.phpCould you code it to automatically retrieve the local time so that the timestamp in the log reflects that? I've manually changed that line to read:Code: Select all
date_default_timezone_set('UTC');
but again, that's something I have to do with each revision.Code: Select all
date_default_timezone_set('America/Los_Angeles');
Thanks.
I hope it doesn't get removed. It may be a moot point, but I like to see when it was last run.Qphoria wrote:I was just going to remove the time stamp as I really only cared about the microseconds.
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Code: Select all
foreach ($download_query->rows as $download) {
$download_data[] = array(
'download_id' => $download['download_id'],
);
}
Code: Select all
<operation>
<search position="replace" offset="4"><![CDATA[
foreach ($download_query->rows as $download) {
]]></search>
<add trim="true"><![CDATA[
]]></add>
</operation>
Thanks.Qphoria wrote:yep.. just search for the first line..
set the position="replace"
set the offset equal to the number of lines in the block minus the first line
set the <add> to just be empty. use trim="true" to ensure there are no spaces
Code: Select all
} elseif ($position == 'replace') { //replace
$existing_line = "";
if ($offset) {
for ($i=0; $i<=$offset; $i++) {
$filedata[$linenum + $i] = '';
}
Code: Select all
if ($offset) {
array_splice($filedata, $linenum, $offset); // $filedata will be modified.
}
I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1
Users browsing this forum: No registered users and 141 guests