Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

ctemplate.patch

By: Marcel- on May 8th, 2014  |  syntax: Diff  |  size: 1.08 KB  |  views: 142  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- a/backend/wbpublic/sqlide/recordset_text_storage.cpp        2014-03-26 16:47:23.000000000 +0100
  2. +++ b/backend/wbpublic/sqlide/recordset_text_storage.cpp        2014-05-09 01:31:36.099430631 +0200
  3. @@ -205,7 +205,7 @@
  4.        if (!pre_tpl)
  5.          g_warning("Failed to open template file: `%s`", pre_tpl_path.c_str());
  6.        else
  7. -        pre_tpl->ReloadIfChanged();
  8. +        ctemplate::Template::ReloadAllIfChanged();
  9.      }      
  10.      if (g_file_test((name+".post.tpl").c_str(), G_FILE_TEST_EXISTS))
  11.      {
  12. @@ -214,7 +214,7 @@
  13.        if (!post_tpl)
  14.          g_warning("Failed to open template file: `%s`", post_tpl_path.c_str());
  15.        else
  16. -        post_tpl->ReloadIfChanged();
  17. +        ctemplate::Template::ReloadAllIfChanged();
  18.      }
  19.    }    
  20.    
  21. @@ -223,7 +223,7 @@
  22.        throw std::runtime_error(strfmt("Failed to open output file: `%s`", _file_path.c_str()));
  23.    }
  24.  
  25. -  tpl->ReloadIfChanged();
  26. +  ctemplate::Template::ReloadAllIfChanged();
  27.  
  28.    std::auto_ptr<TemplateDictionary> dict(new TemplateDictionary("/"));
  29.    BOOST_FOREACH (const Parameters::value_type &param, _parameters)