Searched refs:newWikitext (Results 1 – 2 of 2) sorted by relevance
| /plugin/mermaid/ |
| H A D | action.php | 44 … $newWikitext = str_replace("\n%%" . urldecode($_REQUEST['svg']) . "\n", '', $wikitext, $count); 51 return $newWikitext; 54 private function isWikiTextChanged(string $wikitext, string $newWikitext): bool { argument 55 return strlen($newWikitext) > 0 && $newWikitext !== $wikitext; 58 private function saveWikiChanges(string $ID, string $newWikitext, string $mode): void { argument 60 saveWikiText($ID, $newWikitext, "{$mode} Mermaid diagram", true); 89 $newWikitext = $wikitext; 97 …$newWikitext = substr($wikitext, 0, $whereToInsert) . "\n%%" . urldecode($_REQUEST['svg']) . "\n" … 108 … $newWikitext = str_replace("\n%%" . urldecode($_REQUEST['svg']) . "\n", '', $wikitext, $count); 116 if($this->isWikiTextChanged($wikitext, $newWikitext)) { [all …]
|
| /plugin/todo/ |
| H A D | action.php | 171 … $newWikitext = preg_replace('/(<todo.*?)(\s+#[^>\s]*)(.*?>|\s.*?<\/todo>)/', '$1$3', $wikitext); 174 … saveWikiText($ID, $newWikitext, $this->getLang('uncheckall_todos'), $minoredit = true);
|